Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
OpenXRSpatialContextPersistenceConfig
實驗性: This class may be changed or removed in future versions.
繼承: 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.
方法
void |
add_persistence_context(persistence_context: RID) |
get_persistence_contexts() const |
|
void |
remove_persistence_context(persistence_context: RID) |
方法說明
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().
Array get_persistence_contexts() const 🔗
Gets the persistence context(s) (as RIDs) received by add_persistence_context().
void remove_persistence_context(persistence_context: RID) 🔗
Removes a persistence context.