reckfellENGINE

OpenXRSpatialContainerExtension

OpenXR extension that handles spatial containers.

On this page
class OpenXRSpatialContainerExtensionReckfellSharpInherits OpenXRExtensionWrapper

OpenXR extension that handles spatial containers.

OpenXR extension that handles spatial containers. Enabling this extension will automatically create a main spatial container, and update the lifecycle of the XR application.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

OpenXRSpatialContainerExtensionConstructor
# OpenXRSpatialContainerExtension
C#
public OpenXRSpatialContainerExtension();

Methods7

GetSpatialContainerBoundsVector3
# GetSpatialContainerBounds
C#
public Vector3 GetSpatialContainerBounds();

Retrieves the bounds of the main spatial container.

Returns Vector3
GetSpatialContainerStateOpenXRSpatialContainerState
# GetSpatialContainerState
C#
public OpenXRSpatialContainerState GetSpatialContainerState();

Retrieves the OpenXRSpatialContainerState of the main spatial container.

Returns OpenXRSpatialContainerState
GetSupportedBoundsModesReckfell.Collections.Array
# GetSupportedBoundsModes
C#
public Reckfell.Collections.Array GetSupportedBoundsModes();

Returns an array of supported spatial container bounds mode, see OpenXRSpatialContainerState.BoundsMode.

Returns Reckfell.Collections.Array
IsEnabledbool
# IsEnabled
C#
public bool IsEnabled();

Returns true if spatial containers are enabled in the project settings and available on the current runtime.

Returns bool
IsSpatialContainerActivebool
# IsSpatialContainerActive
C#
public bool IsSpatialContainerActive();

Returns true if the main spatial container is active.

Returns bool
RequestSpatialContainerBoundsModebool
# RequestSpatialContainerBoundsMode
C#
public bool RequestSpatialContainerBoundsMode(OpenXRSpatialContainerState.BoundsMode boundsMode);

Sends a request to the runtime to update the bounds mode of the main spatial container. If the request is accepted, OpenXRSpatialContainerExtension.SpatialContainerBoundsChanged will be emitted with the updated bounds mode. Otherwise, OpenXRSpatialContainerExtension.SpatialContainerBoundsModeRequestDenied will be emitted.

Parameters
NameTypeDefault
boundsModeOpenXRSpatialContainerState.BoundsMode—
Returns bool
RequestSpatialContainerVisiblebool
# RequestSpatialContainerVisible
C#
public bool RequestSpatialContainerVisible(bool visible);

Sends a request to the runtime to update the visibility of the spatial container. If the request is accepted, OpenXRSpatialContainerExtension.SpatialContainerVisibleChanged will be emitted with the updated visibility. Otherwise, OpenXRSpatialContainerExtension.SpatialContainerVisibleRequestDenied will be emitted.

Parameters
NameTypeDefault
visiblebool—
Returns bool

Signals and events6

SpatialContainerBoundsChangedEvent
# SpatialContainerBoundsChanged
C#
public event OpenXRSpatialContainerExtension.SpatialContainerBoundsChangedEventHandler SpatialContainerBoundsChanged;

Emitted when the bounds of the spatial container specified by spatial_container_rid are updated.

Handler parameters
NameTypeDefault
spatialContainerRidRid—
spatialContainerInfiniteBoundsbool—
spatialContainerBoundsModelong—
spatialContainerBoundsVector3—
SpatialContainerBoundsModeRequestDeniedEvent
# SpatialContainerBoundsModeRequestDenied
C#
public event OpenXRSpatialContainerExtension.SpatialContainerBoundsModeRequestDeniedEventHandler SpatialContainerBoundsModeRequestDenied;

Emitted when a request to update the bounds mode of the spatial container specified by spatial_container_rid is denied by the runtime.

Handler parameters
NameTypeDefault
spatialContainerRidRid—
SpatialContainerClosedEvent
# SpatialContainerClosed
C#
public event OpenXRSpatialContainerExtension.SpatialContainerClosedEventHandler SpatialContainerClosed;

Emitted when the spatial container specified by spatial_container_rid is closed.

Handler parameters
NameTypeDefault
spatialContainerRidRid—
SpatialContainerInteractableChangedEvent
# SpatialContainerInteractableChanged
C#
public event OpenXRSpatialContainerExtension.SpatialContainerInteractableChangedEventHandler SpatialContainerInteractableChanged;

Emitted when the interactability of the spatial container specified by spatial_container_rid is updated.

Handler parameters
NameTypeDefault
spatialContainerRidRid—
spatialContainerInteractablebool—
SpatialContainerVisibleChangedEvent
# SpatialContainerVisibleChanged
C#
public event OpenXRSpatialContainerExtension.SpatialContainerVisibleChangedEventHandler SpatialContainerVisibleChanged;

Emitted when the visibility of the spatial container specified by spatial_container_rid is updated.

Handler parameters
NameTypeDefault
spatialContainerRidRid—
spatialContainerVisiblebool—
SpatialContainerVisibleRequestDeniedEvent
# SpatialContainerVisibleRequestDenied
C#
public event OpenXRSpatialContainerExtension.SpatialContainerVisibleRequestDeniedEventHandler SpatialContainerVisibleRequestDenied;

Emitted when the runtime denies the visibility request of the spatial container specified by spatial_container_rid.

Handler parameters
NameTypeDefault
spatialContainerRidRid—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.