diff --git a/src/dat/gui/GUI.js b/src/dat/gui/GUI.js index 803ee1b..c67797e 100644 --- a/src/dat/gui/GUI.js +++ b/src/dat/gui/GUI.js @@ -583,6 +583,20 @@ common.extend( return gui; }, + /** + * @param name + */ + removeFolder: function(name) { + var folder = this.__folders[name]; + if (!folder) { + return; + } + folder.close(); + this.__ul.removeChild(folder.domElement.parentNode); + delete this.__folders[name]; + this.onResize(); + }, + open: function() { this.closed = false; },