2

I can't make it including a dat.GUI element in my project.

Even placing a

var gui = new dat.GUI();

makes my Three.js geometry disappear

"dat is not defined"

Any hint?

Ph1
  • 341
  • 1
  • 4
  • 14

1 Answers1

2

Check out these things:

  • Have you imported the library correctly? It's not included in three.js;
  • Check out the GUI constructor. In some older versions it was DAT.GUI(), then it became dat.GUI(),so check the library version you're using.
leota
  • 1,636
  • 2
  • 13
  • 33