Reputation: 358
I'm using the dat.gui library in javascript and I have two questions:
Initializing the dropdown
const indexParams = {
index: -1,
};
const indexGUI = gui.addFolder("Index");
indexGUI.open();
const indexDropdown = indexGUI.add(indexParams, "index", [0, 1, 2, 3, 4]);
Image of the dropdown before interaction
Upvotes: 1
Views: 108