I made a menu using dat.gui for my applcation with Three.js. It works fine, I have also discovered that pressing h key I can hide the menu created with dat.gui. My question is h
You can toggle the 'closed' class on the first ul tag within the gui domElement.
Here's how to do it if you are using JQuery:
var gui = new dat.GUI(); $(gui.domElement).find(">ul").toggleClass("closed");