Skip to content

OpenXRSpatialContextPersistenceConfig

Inherits: OpenXRStructureBase < RefCounted < Object

Configuration header for spatial persistence.

Configuration header for spatial persistence. Pass this to OpenXRSpatialEntityExtension.create_spatial_context() as the next parameter to create a spatial context with spatial persistence capabilities.

Returns Method
void add_persistence_context(persistence_context: RID)
Array get_persistence_contexts() const
void remove_persistence_context(persistence_context: RID)

add_persistence_context

void add_persistence_context(persistence_context: RID)

Adds a persistence context to this configuration. You must add at least one persistence context to create a valid configuration. You can create a persistence context by calling OpenXRSpatialAnchorCapability.create_persistence_context().

get_persistence_contexts

Array get_persistence_contexts() const

Gets the persistence context(s) (as RIDs) received by add_persistence_context().

remove_persistence_context

void remove_persistence_context(persistence_context: RID)

Removes a persistence context.