Skip to content

OpenXRSpatialComponentPolygon2DList

Inherits: OpenXRSpatialComponentData < RefCounted < Object

Object for storing the queries polygon2d result data.

Object for storing the queries 2D polygon result data when calling OpenXRSpatialEntityExtension.query_snapshot().

Returns Method
Transform3D get_transform(index: int) const
PackedVector2Array get_vertices(snapshot: RID, index: int) const

get_transform

Transform3D get_transform(index: int) const

Returns the transform for positioning our polygon for the entity at this index.

get_vertices

PackedVector2Array get_vertices(snapshot: RID, index: int) const

Returns the polygon vertices for the entity at this index.