Optional
_currentOptional
_currentOptional
_onDefines the background of the scene.
Valid inputs are:
Custom property for background tint, or just background color rendered in the shader
Attenuates the color of the background. Only applies to background textures.
Array with object's children.
Sets the environment map for all physical materials in the scene. However, it's not possible to overwrite an existing texture assigned to MeshStandardMaterial.envMap.
Optional
geometryOptional
isOptional
isOptional
isOptional
isOptional
isReadonly
isRead-only flag to check if a given object is of type Scene.
Optional
isMain camera that the user controls
Optional
materialOptional
Readonly
materialsSame as material but always returns an array.
To set, just set material
property
Optional
morphOptional
morphOptional
objectObject's parent in the scene graph.
Optional
parentParent/Ancestor of this object to bubble events to. This is set internally by setupObject3D.
Camera that in currently being rendered.
Optional
uiAn object that can be used to store custom data about the Object3D.
Readonly
visibleObject gets rendered if true
.
Optional
autoMoves the bounding box center of the object to the center of the world
Optional
setDirty: booleancalls setDirty
Optional
undo: booleanundo any previous autoCenter operation
Optional
autoScales the object to fit the given radius.
Optional
autoScaleRadius: numberoptional (taken from userData.autoScaleRadius by default)
Optional
isCentered: booleanoptional (taken from userData.isCentered by default)
Optional
setDirty: booleantrue by default
Optional
undo: booleanundo any previous autoScale operation
Copy the given object into this object
Optional
recursive: booleanIf true, descendants of the object are also copied. Default true
Note: event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.
Optional
parent: anyuse getObjectByName instead
Searches through an object and its children, starting with the object itself, and returns the first with a matching id.
Unique number of the object instance. Expects a Integer
Searches through an object and its children, starting with the object itself, and returns the first with a matching name.
String to match to the children's Object3D.name property.
Searches through an object and its children, starting with the object itself, and returns the first with a property that matches the value given.
the property name to search for.
value of the given property.
Optional
pivotMoves the object pivot to the center of the bounding box.
The object will rotate around the new pivot.
Optional
setDirty: booleancalls setDirty
undo function
Optional
pivotMoves the object pivot to the given point
The object will rotate around the new pivot.
undo function
Dispatches 'objectUpdate' event on object.
Optional
e: IObjectSetDirtyOptionsConvert the Scene to three.js JSON Object/Scene format.
Optional
update
Deprecated
renamed to mainCamera