Optional__Optional Internal__Optional Internal__If an object has been converted to IObject3D using upgradeObject3D, this flag is set to true.
Optional__Optional Internal_reference to the canvas element used for rendering. (for aspect ratio, etc.)
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_Internal_world position cache for shader updates and other purposes
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.
Camera frustum aspect ratio, window width divided by window height. It can be managed internally if autoAspect is true.
Automatically manage aspect ratio based on window/canvas size.
OptionalautoSet to false to disable automatic call of upgradeObject3D when a child is added.
OptionalboundingFor InstancedMesh, SkinnedMesh etc
OptionalboundingFor InstancedMesh, SkinnedMesh etc
ReadonlycanCheck whether user can interact with this camera. Interactions can be enabled/disabled in a variety of ways, like setInteractions, controlsMode, isMainCamera property
Array with object's children.
ReadonlycontrolsReadonlycontrolsOptionalcontrolsOptionalcurrentOptionalcustomRequired for plugins like GBufferPlugin
OptionalcustomRequired for plugins like NormalBufferPlugin
Automatically managed when autoNearFar is true. See also maxFarPlane
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
OptionalfovOptionalgeometryReadonlyinteractionsIf interactions are enabled for this camera. It can be disabled by some code or plugin. see also setInteractions
use canUserInteract to check if the user can interact with this camera
use isMainCamera instead
OptionalisReadonlyisRead-only flag to check if a given object is of type Camera.
OptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisReadonlyisOptionalisOptionalisOptional ReadonlyisOptional ReadonlyisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalisOptionalmaterialOptional ReadonlymaterialsSame as material but always returns an array.
To set, just set material property
OptionalmaxOptionalminOptionalmorphOptionalmorphAutomatically managed when autoNearFar is true. See also minNearPlane
OptionalobjectOptionalobjectObject's parent in the scene graph.
OptionalparentParent/Ancestor of this object to bubble events to. This is set internally by setupObject3D.
Local position of camera.
Target of camera, in world(global) coordinates.
OptionaluiAn object that can be used to store custom data about the Object3D.
Optionaloptions: Omit<Optional_internal: booleanOptional_refresh: booleanOptionalautoMoves 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
OptionaldistanceFromTarget: numberOptionalworldSpace: booleanNote: event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.
Optionaloptions: Omit<Optional_internal: booleanOptional_refresh: booleanOptionaldisposeOptionalremoveFromParent: 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.
OptionalworldSpace: booleanOptionalcameraView: TOptionalpivotMoves the object pivot to the center of the bounding box.
The object will rotate around the new pivot.
OptionalsetDirty: booleancalls setDirty
undo function
OptionalpivotOptionalsetDirty: booleanOptionalsetDirty: booleanOptionalrefreshRefresh the camera frustum planes from frustumSize. Only for orthographic cameras.
OptionalsetDirty: booleanOptionalrefreshSet the canvas which is used as dom element in controls, etc. This is done by the viewer/scene when main camera is changed
Optionalrefresh: booleanOptionalreplace: booleanDispatches 'objectUpdate' event on object.
Optionaloptions: ICameraSetDirtyOptionsOptionalsetDirty: booleanSet camera view from another camera.
OptionaldistanceFromTarget: numberdefault = 4
OptionalworldSpace: booleandefault = true
Dispatches the setView event which triggers the main camera to set its view to this camera's view.
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.