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.

OpenXRSpatialComponentData

实验性: This class may be changed or removed in future versions.

继承: RefCounted < Object

派生: OpenXRSpatialComponentAnchorList, OpenXRSpatialComponentBounded2DList, OpenXRSpatialComponentBounded3DList, OpenXRSpatialComponentMarkerList, OpenXRSpatialComponentMesh2DList, OpenXRSpatialComponentMesh3DList, OpenXRSpatialComponentParentList, OpenXRSpatialComponentPersistenceList, OpenXRSpatialComponentPlaneAlignmentList, OpenXRSpatialComponentPlaneSemanticLabelList, OpenXRSpatialComponentPolygon2DList, OpenXRSpatialQueryResultData

用于存储 OpenXR 空间实体组件数据的对象。

描述

用于存储 OpenXR 空间实体组件数据的对象。

方法

int

_get_component_type() virtual const

int

_get_structure_data(next: int) virtual

void

_set_capacity(capacity: int) virtual

int

get_component_type() const

void

set_capacity(capacity: int)


方法说明

int _get_component_type() virtual const 🔗

返回存储数据的组件的组件类型。


int _get_structure_data(next: int) virtual 🔗

返回指向结构体数据的指针,该结构体数据将与快照查询一起提交。只要该对象被实例化,该指针就必须保持有效。


void _set_capacity(capacity: int) virtual 🔗

设置由空间实体查询系统提供的预期容量(expected capacity)。缓冲区(buffers)应当使用正确的存储空间进行初始化。


int get_component_type() const 🔗

获取此 OpenXRSpatialComponentDataXrSpatialComponentTypeEXT


void set_capacity(capacity: int) 🔗

设置由空间实体查询系统提供的预期容量(expected capacity)。缓冲区(buffers)应当使用正确的存储空间进行初始化。