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
I'd recommend:
$(gui.domElement).attr("hidden", true);
as it also prevents clicking. With toggleHide() it's possible to still click it. Just closing it leaves the opportunity to re-open.
toggleHide()
Worked for me as I don't want the user to re-open it ;)