OpenXRSpatialContextPersistenceConfig
Inherits: OpenXRStructureBase < RefCounted < Object
Description
Section titled “Description”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.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| void | add_persistence_context(persistence_context: RID) |
| Array | get_persistence_contexts() const |
| void | remove_persistence_context(persistence_context: RID) |
Method descriptions
Section titled “Method descriptions”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.
