class_xrtracker.rst 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/XRTracker.xml.
  6. .. _class_XRTracker:
  7. XRTracker
  8. =========
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`XRFaceTracker<class_XRFaceTracker>`, :ref:`XRPositionalTracker<class_XRPositionalTracker>`
  11. A tracked object.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. This object is the base of all XR trackers.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`XR documentation index <../tutorials/xr/index>`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +-----------------------------------------------+----------------------------------------------------------+----------------+
  26. | :ref:`String<class_String>` | :ref:`description<class_XRTracker_property_description>` | ``""`` |
  27. +-----------------------------------------------+----------------------------------------------------------+----------------+
  28. | :ref:`StringName<class_StringName>` | :ref:`name<class_XRTracker_property_name>` | ``&"Unknown"`` |
  29. +-----------------------------------------------+----------------------------------------------------------+----------------+
  30. | :ref:`TrackerType<enum_XRServer_TrackerType>` | :ref:`type<class_XRTracker_property_type>` | ``128`` |
  31. +-----------------------------------------------+----------------------------------------------------------+----------------+
  32. .. rst-class:: classref-section-separator
  33. ----
  34. .. rst-class:: classref-descriptions-group
  35. Property Descriptions
  36. ---------------------
  37. .. _class_XRTracker_property_description:
  38. .. rst-class:: classref-property
  39. :ref:`String<class_String>` **description** = ``""`` :ref:`🔗<class_XRTracker_property_description>`
  40. .. rst-class:: classref-property-setget
  41. - |void| **set_tracker_desc**\ (\ value\: :ref:`String<class_String>`\ )
  42. - :ref:`String<class_String>` **get_tracker_desc**\ (\ )
  43. The description of this tracker.
  44. .. rst-class:: classref-item-separator
  45. ----
  46. .. _class_XRTracker_property_name:
  47. .. rst-class:: classref-property
  48. :ref:`StringName<class_StringName>` **name** = ``&"Unknown"`` :ref:`🔗<class_XRTracker_property_name>`
  49. .. rst-class:: classref-property-setget
  50. - |void| **set_tracker_name**\ (\ value\: :ref:`StringName<class_StringName>`\ )
  51. - :ref:`StringName<class_StringName>` **get_tracker_name**\ (\ )
  52. 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:
  53. - ``head`` identifies the :ref:`XRPositionalTracker<class_XRPositionalTracker>` of the players head
  54. - ``left_hand`` identifies the :ref:`XRControllerTracker<class_XRControllerTracker>` in the players left hand
  55. - ``right_hand`` identifies the :ref:`XRControllerTracker<class_XRControllerTracker>` in the players right hand
  56. - ``/user/hand_tracker/left`` identifies the :ref:`XRHandTracker<class_XRHandTracker>` for the players left hand
  57. - ``/user/hand_tracker/right`` identifies the :ref:`XRHandTracker<class_XRHandTracker>` for the players right hand
  58. - ``/user/body_tracker`` identifies the :ref:`XRBodyTracker<class_XRBodyTracker>` for the players body
  59. - ``/user/face_tracker`` identifies the :ref:`XRFaceTracker<class_XRFaceTracker>` for the players face
  60. .. rst-class:: classref-item-separator
  61. ----
  62. .. _class_XRTracker_property_type:
  63. .. rst-class:: classref-property
  64. :ref:`TrackerType<enum_XRServer_TrackerType>` **type** = ``128`` :ref:`🔗<class_XRTracker_property_type>`
  65. .. rst-class:: classref-property-setget
  66. - |void| **set_tracker_type**\ (\ value\: :ref:`TrackerType<enum_XRServer_TrackerType>`\ )
  67. - :ref:`TrackerType<enum_XRServer_TrackerType>` **get_tracker_type**\ (\ )
  68. The type of tracker.
  69. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  70. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  71. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  72. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  73. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  74. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  75. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  76. .. |void| replace:: :abbr:`void (No return value.)`