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

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

Hereda: OpenXRSpatialEntityTracker < XRPositionalTracker < XRTracker < RefCounted < Object

Rastreador de entidad espacial para nuestra extensión de seguimiento de marcadores de entidad espacial.

Descripción

Rastreador de entidad espacial para nuestra extensión de seguimiento de marcadores de entidad espacial de OpenXR. Estos rastreadores identifican entidades en nuestro espacio real detectadas por un marcador visual como un código QR o Aruco, y mapean su ubicación a nuestro espacio virtual.

Propiedades

Vector2

bounds_size

Vector2(0, 0)

int

marker_id

0

MarkerType

marker_type

0

Métodos

Variant

get_marker_data() const

void

set_marker_data(marker_data: Variant)


Descripciones de Propiedades

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.


Descripciones de Métodos

Variant get_marker_data() const 🔗

Devuelve los datos del marcador para este marcador. Puede devolver un String o PackedByteArray. Solo aplicable a marcadores basados en códigos QR.


void set_marker_data(marker_data: Variant) 🔗

Establece los datos del marcador para este marcador.

Nota: Esto solo debe ser establecido por la lógica de descubrimiento de marcadores.