dat.gui how to hide menu with code

后端 未结 7 964
太阳男子
太阳男子 2021-02-06 04:06

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

7条回答
  •  情深已故
    2021-02-06 04:26

    You can try

    var gui = new dat.GUI();
     //... your logic here
    gui.__proto__.constructor.toggleHide()
    

提交回复
热议问题