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

Object for storing OpenXR spatial entity component data.

描述

Object for storing OpenXR spatial entity component data.

方法

int

_get_component_type() virtual const

int

_get_structure_data(next: int) virtual const

void

_set_capacity(capacity: int) virtual

void

set_capacity(capacity: int)


方法说明

int _get_component_type() virtual const 🔗

Return the component type for the component we store data for.


int _get_structure_data(next: int) virtual const 🔗

Return a pointer to the structure data that will be submitted along with the snapshot query. This pointer must remain valid as long as this object is instantiated.


void _set_capacity(capacity: int) virtual 🔗

Set the expected capacity as provided by the spatial entities query system. Buffers should be initialized with the correct storage.


void set_capacity(capacity: int) 🔗

Set the expected capacity as provided by the spatial entities query system. Buffers should be initialized with the correct storage.