Creates a folder in a dat.GUI instance and provides a method to destroy it later. This function handles asynchronous loading of dat.gui and manages the folder creation within the given parent GUI instance.
dat.gui
parent
const instance = createDatGuiFolder({ name: 'GUI Folder', parent: guiParentFolder, onCreate: (folder) => console.log(folder),});instance.destroy();
Creates a folder in a dat.GUI instance and provides a method to destroy it later. This function handles asynchronous loading of
dat.gui
and manages the folder creation within the givenparent
GUI instance.Example