I made a menu using dat.gui for my application using Three.js. It works fine, I also found that by pressing the h key I can hide the menu created using dat.gui. My question is: how can I make the menu appear / disappear directly from the code?
var gui = new dat.GUI(); gui.add(text, 'message'); gui.add(text, 'speed', -5, 5); gui.???
I tried using the DOMElement hiding property and it works, but I would like to use a unique way to handle this function. Is there a call function? I noticed that JavaScript events related to keystrokes are bound to an area using library bindings. But what is the right way to do this?
Giancarlo
source share