【Question】About dat.gui 's style

Hi guys!
I’m now put my scene inside a dom element
Every thing works fine so far
But when i add GUI
It goes in absolute style,it’s out of the dom element
Even worse,when i put my scene inside a modal dialog dom element
I can’t even interact with it
Is there a solution to solve those problems?

Hi!

Set
gui.autoPlace = false;
And
myDOMElement.appendChild( gui.domElement );

3 Likes

Thanks man,That’s really helpful!

1 Like