Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

CASTORGUI.GUISelect.addOptions

$
0
0

Hi,

 

I use CASTORGUI.GUISelect.addOptions() with this code:

 

        var sel = new CASTORGUI.GUISelect("testSel", { x: 5, y: 10, w: 200, h: 40 }, gui, { alert("click") }, false);
        for (var i = 0; i < 10; i++) {
            sel.addOptions("value", "text");  // ????  
        }
        mywin.add(sel);
 
But it seems not work.
 
However, it works without    sel.addOptions("value", "text");
 
How can I use this GUI control method?
 
Thanks for your help!

Viewing all articles
Browse latest Browse all 388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>