:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/modules/openxr/doc_classes/OpenXRMarkerTracker.xml. .. _class_OpenXRMarkerTracker: OpenXRMarkerTracker =================== **Experimental:** This class may be changed or removed in future versions. **Inherits:** :ref:`OpenXRSpatialEntityTracker` **<** :ref:`XRPositionalTracker` **<** :ref:`XRTracker` **<** :ref:`RefCounted` **<** :ref:`Object` Spatial entity tracker for our spatial entity marker tracking extension. .. rst-class:: classref-introduction-group Description ----------- 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. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +---------------------------------------------------------------------+--------------------------------------------------------------------+-------------------+ | :ref:`Vector2` | :ref:`bounds_size` | ``Vector2(0, 0)`` | +---------------------------------------------------------------------+--------------------------------------------------------------------+-------------------+ | :ref:`int` | :ref:`marker_id` | ``0`` | +---------------------------------------------------------------------+--------------------------------------------------------------------+-------------------+ | :ref:`MarkerType` | :ref:`marker_type` | ``0`` | +---------------------------------------------------------------------+--------------------------------------------------------------------+-------------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`get_marker_data`\ (\ ) |const| | +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_marker_data`\ (\ marker_data\: :ref:`Variant`\ ) | +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_OpenXRMarkerTracker_property_bounds_size: .. rst-class:: classref-property :ref:`Vector2` **bounds_size** = ``Vector2(0, 0)`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_bounds_size**\ (\ value\: :ref:`Vector2`\ ) - :ref:`Vector2` **get_bounds_size**\ (\ ) The bounds size for this marker. .. rst-class:: classref-item-separator ---- .. _class_OpenXRMarkerTracker_property_marker_id: .. rst-class:: classref-property :ref:`int` **marker_id** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_marker_id**\ (\ value\: :ref:`int`\ ) - :ref:`int` **get_marker_id**\ (\ ) The marker ID for this marker, this is only returned for Aruco and April Tag markers. Call :ref:`get_marker_data()` for QRCode markers. .. rst-class:: classref-item-separator ---- .. _class_OpenXRMarkerTracker_property_marker_type: .. rst-class:: classref-property :ref:`MarkerType` **marker_type** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_marker_type**\ (\ value\: :ref:`MarkerType`\ ) - :ref:`MarkerType` **get_marker_type**\ (\ ) The type of marker. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_OpenXRMarkerTracker_method_get_marker_data: .. rst-class:: classref-method :ref:`Variant` **get_marker_data**\ (\ ) |const| :ref:`🔗` Returns the marker data for this marker. This can return a :ref:`String` or :ref:`PackedByteArray`. Only applicable to QR Code based markers. .. rst-class:: classref-item-separator ---- .. _class_OpenXRMarkerTracker_method_set_marker_data: .. rst-class:: classref-method |void| **set_marker_data**\ (\ marker_data\: :ref:`Variant`\ ) :ref:`🔗` Sets the marker data for this marker. \ **Note:** This should only be set by marker discovery logic. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`