Skip to content

OpenXRMarkerTracker

Inherits: OpenXRSpatialEntityTracker < XRPositionalTracker < XRTracker < RefCounted < Object

Spatial entity tracker for our spatial entity marker tracking extension.

Spatial entity tracker for our OpenXR spatial entity marker tracking extension. These trackers identify entities in our real space detected by a visual marker such as a QRCode or ArUco code, and map their location to our virtual space.

Type Name Default
Vector2 bounds_size Vector2(0, 0)
int marker_id 0
OpenXRSpatialComponentMarkerList.MarkerType marker_type 0
Returns Method
Variant get_marker_data() const
void set_marker_data(marker_data: Variant)

bounds_size

Vector2 bounds_size = Vector2(0, 0)

The bounds size for this marker.

marker_id

int marker_id = 0

The marker ID for this marker, this is only returned for ArUco and April Tag markers. Call get_marker_data() for QRCode markers.

marker_type

OpenXRSpatialComponentMarkerList.MarkerType marker_type = 0

The type of marker.

get_marker_data

Variant get_marker_data() const

Returns the marker data for this marker. This can return a String or PackedByteArray. Only applicable to QR Code based markers.

set_marker_data

void set_marker_data(marker_data: Variant)

Sets the marker data for this marker.

Note: This should only be set by marker discovery logic.