Gets the clear color buffer of the camera.
The clear color buffer.
Sets the clear color buffer of the camera.
The clear color buffer.
Gets the clear depth buffer of the camera.
The clear depth buffer.
Sets the clear depth buffer of the camera.
The clear depth buffer.
Gets the clear stencil buffer of the camera.
The clear stencil buffer.
Sets the clear stencil buffer of the camera.
The clear stencil buffer.
The nearest ancestor <pc-app> element, or null if this element has no <pc-app>
ancestor. The search starts at the parent, so an element never resolves to itself.
The closest app element, or null.
The nearest ancestor element that fronts an entity — <pc-entity>, <pc-model> or
<pc-node> — or null if this element has no such ancestor. The search starts at the
parent, so an element never resolves to itself.
The closest entity-fronting element, or null.
Gets the cull faces of the camera.
The cull faces.
Sets the cull faces of the camera.
The cull faces.
Gets the enabled state of the component.
The enabled state of the component.
Sets the enabled state of the component.
The enabled state of the component.
Gets the far clip distance of the camera.
The far clip distance.
Sets the far clip distance of the camera.
The far clip distance.
Gets the flip faces of the camera.
The flip faces.
Sets the flip faces of the camera.
The flip faces.
Gets the field of view of the camera.
The field of view.
Sets the field of view of the camera.
The field of view.
Gets the frustum culling of the camera.
The frustum culling.
Sets the frustum culling of the camera.
The frustum culling.
Gets the gamma correction of the camera.
The gamma correction.
Sets the gamma correction of the camera.
The gamma correction.
Gets whether the camera's field of view (fov) is horizontal or vertical.
Whether the camera's field of view is horizontal.
Sets whether the camera's field of view (fov) is horizontal or vertical. Defaults to false (meaning it is vertical be default).
Whether the camera's field of view is horizontal.
Gets the near clip distance of the camera.
The near clip distance.
Sets the near clip distance of the camera.
The near clip distance.
Gets the orthographic height of the camera.
The orthographic height.
Sets the orthographic height of the camera.
The orthographic height.
Gets the priority of the camera.
The priority.
Sets the priority of the camera.
The priority.
Gets the projection of the camera.
The projection.
Sets the projection of the camera. Use orthoHeight to size an orthographic projection.
The projection ('perspective' or 'orthographic').
Gets the tone mapping of the camera.
The tone mapping.
Sets the tone mapping of the camera.
The tone mapping.
Protected_Called when the element is fully initialized and ready. Subclasses should call this when
they're ready. Resolves the ready promise and dispatches a bubbling, composed ready
event. Signals at most once per readiness cycle: a repeat call before _resetReady
has re-armed the promise does nothing.
Protected_Returns the ready promise to its pending state. Subclasses should call this when the
resource their readiness announced is torn down (typically from disconnectedCallback),
so that a later re-initialization can signal readiness again. Does nothing while the
promise is still pending — an in-flight waiter carries over to the next readiness cycle
rather than being stranded on a promise nothing will ever resolve.
Ends the camera's XR mode.
ProtectedgetReturns the data the component is created with. Overridden by subclasses to supply the initial values of their cached properties.
The initial component data.
ProtectedinitConfigures the newly added component. Overridden by subclasses whose setup goes beyond the initial data — child-element handling, asset resolution and the like.
Returns a promise that resolves with this element when it's ready. This is the low-level primitive underlying whenReady, which is the recommended way to wait for elements.
Readiness tracks the element's current lifecycle: once a ready element is torn down (for example by removing it from the document), this returns a fresh promise that resolves when the element is next ready. A promise obtained earlier stays resolved — call this again after re-inserting an element rather than reusing a promise from before its removal.
A promise that resolves with this element when it's ready.
Starts the camera in XR mode.
The type of XR mode to start.
The space to start the camera in.
The CameraComponentElement interface provides properties and methods for manipulating
<pc-camera>elements. The CameraComponentElement interface also inherits the properties and methods of the HTMLElement interface.Engine component: CameraComponent (
camera).