123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- :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/doc/classes/XRTracker.xml.
- .. _class_XRTracker:
- XRTracker
- =========
- **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- **Inherited By:** :ref:`XRFaceTracker<class_XRFaceTracker>`, :ref:`XRPositionalTracker<class_XRPositionalTracker>`
- A tracked object.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- This object is the base of all XR trackers.
- .. rst-class:: classref-introduction-group
- Tutorials
- ---------
- - :doc:`XR documentation index <../tutorials/xr/index>`
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +-----------------------------------------------+----------------------------------------------------------+----------------+
- | :ref:`String<class_String>` | :ref:`description<class_XRTracker_property_description>` | ``""`` |
- +-----------------------------------------------+----------------------------------------------------------+----------------+
- | :ref:`StringName<class_StringName>` | :ref:`name<class_XRTracker_property_name>` | ``&"Unknown"`` |
- +-----------------------------------------------+----------------------------------------------------------+----------------+
- | :ref:`TrackerType<enum_XRServer_TrackerType>` | :ref:`type<class_XRTracker_property_type>` | ``128`` |
- +-----------------------------------------------+----------------------------------------------------------+----------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_XRTracker_property_description:
- .. rst-class:: classref-property
- :ref:`String<class_String>` **description** = ``""`` :ref:`🔗<class_XRTracker_property_description>`
- .. rst-class:: classref-property-setget
- - |void| **set_tracker_desc**\ (\ value\: :ref:`String<class_String>`\ )
- - :ref:`String<class_String>` **get_tracker_desc**\ (\ )
- The description of this tracker.
- .. rst-class:: classref-item-separator
- ----
- .. _class_XRTracker_property_name:
- .. rst-class:: classref-property
- :ref:`StringName<class_StringName>` **name** = ``&"Unknown"`` :ref:`🔗<class_XRTracker_property_name>`
- .. rst-class:: classref-property-setget
- - |void| **set_tracker_name**\ (\ value\: :ref:`StringName<class_StringName>`\ )
- - :ref:`StringName<class_StringName>` **get_tracker_name**\ (\ )
- The unique name of this tracker. The trackers that are available differ between various XR runtimes and can often be configured by the user. Godot maintains a number of reserved names that it expects the :ref:`XRInterface<class_XRInterface>` to implement if applicable:
- - ``head`` identifies the :ref:`XRPositionalTracker<class_XRPositionalTracker>` of the players head
- - ``left_hand`` identifies the :ref:`XRControllerTracker<class_XRControllerTracker>` in the players left hand
- - ``right_hand`` identifies the :ref:`XRControllerTracker<class_XRControllerTracker>` in the players right hand
- - ``/user/hand_tracker/left`` identifies the :ref:`XRHandTracker<class_XRHandTracker>` for the players left hand
- - ``/user/hand_tracker/right`` identifies the :ref:`XRHandTracker<class_XRHandTracker>` for the players right hand
- - ``/user/body_tracker`` identifies the :ref:`XRBodyTracker<class_XRBodyTracker>` for the players body
- - ``/user/face_tracker`` identifies the :ref:`XRFaceTracker<class_XRFaceTracker>` for the players face
- .. rst-class:: classref-item-separator
- ----
- .. _class_XRTracker_property_type:
- .. rst-class:: classref-property
- :ref:`TrackerType<enum_XRServer_TrackerType>` **type** = ``128`` :ref:`🔗<class_XRTracker_property_type>`
- .. rst-class:: classref-property-setget
- - |void| **set_tracker_type**\ (\ value\: :ref:`TrackerType<enum_XRServer_TrackerType>`\ )
- - :ref:`TrackerType<enum_XRServer_TrackerType>` **get_tracker_type**\ (\ )
- The type of tracker.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |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.)`
|