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) 🔗
移除持久化上下文。