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
空間持久性設定標頭。
說明
用於空間持久化的設定標頭。將其作為下一個參數傳遞給 OpenXRSpatialEntityExtension.create_spatial_context() 方法即可建立具有空間持久化功能的空間情境。
方法
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) 🔗
將持久化情境新增到該設定中。必須新增至少一個持久化情境才能建立一個有效的設定。可以通過呼叫 OpenXRSpatialAnchorCapability.create_persistence_context() 來建立持久化情境。
Array get_persistence_contexts() const 🔗
取得由 add_persistence_context() 方法接收到的持久化情境(persistence context)(以 RID 的形式回傳)。
void remove_persistence_context(persistence_context: RID) 🔗
移除持久化情境。