I'm using dat.GUI and want to replace a folder with new content.
var gui = new dat.GUI();
var folder = gui.addFolder('someString');
// sometime later ...
var newFolder = gui.addFolder('someString'); // causes an error
So I need a way to remove the previous folder or replace its content.
Any ideas?
This solution worked for me. You need to add this function to the dat.GUI file or manually add it in your code:
Check it out here: dat.gui how to hide menu with code