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.

OpenXRSpatialContextPersistenceConfig

Sperimentale: This class may be changed or removed in future versions.

Eredita: OpenXRStructureBase < RefCounted < Object

Configuration header for spatial persistence.

Descrizione

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.

Metodi

void

add_persistence_context(persistence_context: RID)

Array

get_persistence_contexts() const

void

remove_persistence_context(persistence_context: RID)


Descrizioni dei metodi

void add_persistence_context(persistence_context: RID) 🔗

Aggiunge un contesto di persistenza a questa configurazione. È necessario aggiungere almeno un contesto di persistenza per creare una configurazione valida. È possibile creare un contesto di persistenza chiamando 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.