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.

OpenXRMarkerTracker

Sperimentale: This class may be changed or removed in future versions.

Eredita: OpenXRSpatialEntityTracker < XRPositionalTracker < XRTracker < RefCounted < Object

Spatial entity tracker for our spatial entity marker tracking extension.

Descrizione

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.

Proprietà

Vector2

bounds_size

Vector2(0, 0)

int

marker_id

0

MarkerType

marker_type

0

Metodi

Variant

get_marker_data() const

void

set_marker_data(marker_data: Variant)


Descrizioni delle proprietà

Vector2 bounds_size = Vector2(0, 0) 🔗

The bounds size for this marker.


int marker_id = 0 🔗

  • void set_marker_id(value: int)

  • int get_marker_id()

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


MarkerType marker_type = 0 🔗

The type of marker.


Descrizioni dei metodi

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.


void set_marker_data(marker_data: Variant) 🔗

Imposta i dati del marcatore per questo marcatore.

Nota: Questi si dovrebbero impostare soltanto dalla logica di individuazione dei marcatori.