Skip to content

OpenXRSpatialContainerState

Inherits: RefCounted < Object

An object representing the state of an OpenXR spatial container.

The OpenXRSpatialContainerState object holds information about the current state of a spatial container, including its visibility, interactability, and bounds mode.

Returns Method
BoundsMode get_bounds_mode() const
bool is_interactable() const
bool is_visible() const

BoundsMode

enum BoundsMode

BOUNDS_MODE_BOUNDED = 0

The spatial container is in bounded mode.

BOUNDS_MODE_IMMERSIVE = 1

The spatial container is in immersive mode.

get_bounds_mode

BoundsMode get_bounds_mode() const

Returns the current bounds mode of the spatial container.

is_interactable

bool is_interactable() const

Returns the current interactability of the spatial container.

is_visible

bool is_visible() const

Returns the current visibility state of the spatial container.