You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling the setValue function of an options controller does not modify the selected index of the drop down.
Modifying the selected index of the drop down, does not modify the initial value when you call getValue();
// Temp work around i'm doing is to just set both
var realIndex = parseInt( localStorage.getItem("lastSlot") );
var slotController = this._gui.add(this, '_currentSlot')
.options([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
.name("Save Slot");
slotController.domElement.childNodes[1].selectedIndex = realIndex;
slotController.setValue( realIndex )
The text was updated successfully, but these errors were encountered:
Calling the setValue function of an options controller does not modify the selected index of the drop down.
Modifying the selected index of the drop down, does not modify the initial value when you call getValue();
The text was updated successfully, but these errors were encountered: