Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

API and Examples

Michael Chang edited this page Dec 14, 2016 · 14 revisions

dat.GUIVR

Namespace for the module. Has a few methods:

.create( name )

Returns a GUI Object. const gui = dat.GUIVR.create( name );

  • name: what text will show up at the top of the gui tab

.addInputObject( object3D )

Takes any object3D and returns an Input (laser pointer) for dat.GUIVR.

  • object3D: any THREE.Object3D object (mesh, group, etc)

.enableMouse() / .disableMouse()

Enables or disables mouse interaction.

GUI Object

Each GUI is a self contained list of controllers that can be moved around and minimized.

.add( arg1, arg2, arg3, ... )

Creates a new controller and returns it. See controllers and controllers and how to create them.

Example: gui.add( object, 'numericProperty', min, max );

.addController( controller1, controller2, controller3, ... )

Adds existing controller(s) to the existing gui.

Example:

Clone this wiki locally