Skip to content
Logan Waldman edited this page Jan 8, 2016 · 1 revision

#Function Overview

####GUI.addElement(object) adds the selected object to the gui

######accepts object - a THREE.Object3D to be placed on the gui. the object can then be moved with object.position.set(x,y,z) as usual

######returns object - the same as the input object, to support function chaining and calls such as var foo = gui.addElement(new THREE.Object3D());

####GUI.addTextElement(text,x,y,{opts}) add text to the screen at the selected position

######accepts x,y - x and y position values of the object. (0,0) is the center of the screen

opts - an optional object containing extra values

  • z - the z index of the text, higer values appear 'in front' of lower values

##Cubes Wiki

##Gui.js Pages

Clone this wiki locally