0.2.0-dev Download ZIP
38 lines ·1.8 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="OpenXRMarkerTracker" inherits="OpenXRSpatialEntityTracker" api_type="core" experimental="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd"> |
| 3 | <brief_description> |
| 4 | Spatial entity tracker for our spatial entity marker tracking extension. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | 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. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <methods> |
| 12 | <method name="get_marker_data" qualifiers="const"> |
| 13 | <return type="Variant" /> |
| 14 | <description> |
| 15 | Returns the marker data for this marker. This can return a [String] or [PackedByteArray]. Only applicable to QR Code based markers. |
| 16 | </description> |
| 17 | </method> |
| 18 | <method name="set_marker_data"> |
| 19 | <return type="void" /> |
| 20 | <param index="0" name="marker_data" type="Variant" /> |
| 21 | <description> |
| 22 | Sets the marker data for this marker. |
| 23 | [b]Note:[/b] This should only be set by marker discovery logic. |
| 24 | </description> |
| 25 | </method> |
| 26 | </methods> |
| 27 | <members> |
| 28 | <member name="bounds_size" type="Vector2" setter="set_bounds_size" getter="get_bounds_size" default="Vector2(0, 0)"> |
| 29 | The bounds size for this marker. |
| 30 | </member> |
| 31 | <member name="marker_id" type="int" setter="set_marker_id" getter="get_marker_id" default="0"> |
| 32 | The marker ID for this marker, this is only returned for ArUco and April Tag markers. Call [method get_marker_data] for QRCode markers. |
| 33 | </member> |
| 34 | <member name="marker_type" type="int" setter="set_marker_type" getter="get_marker_type" enum="OpenXRSpatialComponentMarkerList.MarkerType" default="0"> |
| 35 | The type of marker. |
| 36 | </member> |
| 37 | </members> |
| 38 | </class> |