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.
OptionalassetOptionalautoSet to false to disable automatic call of upgradeObject3D when a child is added.
OptionalboundingFor InstancedMesh, SkinnedMesh etc
OptionalboundingFor InstancedMesh, SkinnedMesh etc
Array with object's children.
OptionalcurrentOptionalcustomRequired for Light shadows and plugins like DepthBufferPlugin
OptionalcustomRequired for PointLight shadows
OptionalcustomRequired for plugins like GBufferPlugin
OptionalcustomRequired for plugins like NormalBufferPlugin
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
OptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisReadonlyisFlag to check if a given object is of type Object3D.
OptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptional 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.
OptionaluiAn object that can be used to store custom data about the Object3D.
OptionalautoMoves 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
OptionalcomputeFor InstancedMesh, SkinnedMesh etc Computes bounding box, updating .boundingBox attribute.
OptionalcomputeFor InstancedMesh, SkinnedMesh etc Computes bounding sphere, updating .boundingSphere attribute.
OptionalcomputeFor LineSegments, Line2 etc
OptionaldisposeOptionalremoveFromParent: booleanremove from parent. Default true
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.
OptionalpivotMoves the object pivot to the center of the bounding box.
The object will rotate around the new pivot.
OptionalsetDirty: booleancalls setDirty
undo function
OptionalpivotOptionalrefreshOptionalsetOptionaltraverseTraverse 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.