Optional__Optional Internal__Optional Internal__If an object has been converted to IObject3D using upgradeObject3D, this flag is set to true.
Optional__Optional_Optional Internal_Optional Internal_Optional Internal_Optional Internal_Optional_A promise can be set by the object to indicate that the object is loading. This can be used by the scene, viewer, plugins to defer actions until the object is loaded.
Optional Internal_Optional Internal_Optional Internal_Optional Internal_If this is present, only the objects in this array will be saved in the glb/gltf files, and the object.children array will be ignored. The other properties are expected to be loaded/filled at runtime by default values or from an external asset loaded from IImportResultUserData.rootPath.
OptionalacceptSet to false to disable propagation of any events from its children.
renamed to mainCamera
OptionalassetOptionalautoSet to false to disable automatic call of upgradeObject3D when a child is added.
Defines 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.
OptionalboundingFor InstancedMesh, SkinnedMesh etc
OptionalboundingFor InstancedMesh, SkinnedMesh etc
Array with object's children.
OptionalcurrentOptionalcustomRequired for plugins like GBufferPlugin
OptionalcustomRequired for plugins like NormalBufferPlugin
Sets the environment map for all physical materials in the scene. However, it's not possible to overwrite an existing texture assigned to THREE.MeshStandardMaterial.envMap | MeshStandardMaterial.envMap.
OptionalforcedIf this is set, it will be returned when accessing geometry property.
OptionalforcedIf this is set, it will be returned when accessing material property.
see GBufferRenderPass for sample usage
OptionalgeometryOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisReadonlyisRead-only flag to check if a given object is of type Scene.
OptionalisOptionalisOptionalisOptionalisMain camera that the user controls
OptionalmaterialOptional ReadonlymaterialsSame as material but always returns an array.
To set, just set material property
OptionalmorphOptionalmorphOptionalobjectOptionalobjectObject's parent in the scene graph.
OptionalparentParent/Ancestor of this object to bubble events to. This is set internally by setupObject3D.
Camera that in currently being rendered.
OptionaluiAn object that can be used to store custom data about the Object3D.
ReadonlyvisibleObject gets rendered if true.
Optionaloptions: AddObjectOptionsOptionalautoMoves the bounding box center of the object to the center of the world
OptionalsetDirty: booleancalls setDirty
Optionalundo: booleanundo any previous autoCenter operation
OptionalautoScales the object to fit the given radius.
OptionalautoScaleRadius: numberoptional (taken from userData.autoScaleRadius by default)
OptionalisCentered: booleanoptional (taken from userData.isCentered by default)
OptionalsetDirty: booleantrue by default
Optionalundo: booleanundo any previous autoScale operation
Returns a clone of this object and optionally all descendants.
Optionalrecursive: booleanIf true, descendants of the object are also cloned. Default true
OptionalcomputeFor InstancedMesh, SkinnedMesh etc Computes bounding box, updating .boundingBox attribute.
OptionalcomputeFor InstancedMesh, SkinnedMesh etc Computes bounding sphere, updating .boundingSphere attribute.
OptionalcomputeFor LineSegments, Line2 etc
Copy the given object into this object
Optionalrecursive: booleanIf true, descendants of the object are also copied. Default true
Note: event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.
OptionaldisposeOptionalremoveFromParent: booleanremove from parent. Default true
Optionalprecise: booleanOptionalignoreInvisible: booleanSearches 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.
OptionalpivotMoves the object pivot to the center of the bounding box.
The object will rotate around the new pivot.
OptionalsetDirty: booleancalls setDirty
undo function
OptionalpivotOptionalrefreshConvert the Scene to three.js JSON Object/Scene format.
OptionaltraverseTraverse only upgraded objects with extra options
visible: traverse only visible objects, widgets: traverse widgets also
Optionalupdate
If a mesh has been converted to IObject3D using
upgradeObject3D, this flag is set to true.