class_xrserver.rst 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  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/XRServer.xml.
  6. .. _class_XRServer:
  7. XRServer
  8. ========
  9. **Inherits:** :ref:`Object<class_Object>`
  10. Server for AR and VR features.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. The AR/VR server is the heart of our Advanced and Virtual Reality solution and handles all the processing.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - :doc:`XR documentation index <../tutorials/xr/index>`
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +---------------------------------------+---------------------------------------------------------------------------------+-----------------------------------------------------+
  25. | :ref:`bool<class_bool>` | :ref:`camera_locked_to_origin<class_XRServer_property_camera_locked_to_origin>` | ``false`` |
  26. +---------------------------------------+---------------------------------------------------------------------------------+-----------------------------------------------------+
  27. | :ref:`XRInterface<class_XRInterface>` | :ref:`primary_interface<class_XRServer_property_primary_interface>` | |
  28. +---------------------------------------+---------------------------------------------------------------------------------+-----------------------------------------------------+
  29. | :ref:`Transform3D<class_Transform3D>` | :ref:`world_origin<class_XRServer_property_world_origin>` | ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` |
  30. +---------------------------------------+---------------------------------------------------------------------------------+-----------------------------------------------------+
  31. | :ref:`float<class_float>` | :ref:`world_scale<class_XRServer_property_world_scale>` | ``1.0`` |
  32. +---------------------------------------+---------------------------------------------------------------------------------+-----------------------------------------------------+
  33. .. rst-class:: classref-reftable-group
  34. Methods
  35. -------
  36. .. table::
  37. :widths: auto
  38. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | |void| | :ref:`add_interface<class_XRServer_method_add_interface>`\ (\ interface\: :ref:`XRInterface<class_XRInterface>`\ ) |
  40. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | |void| | :ref:`add_tracker<class_XRServer_method_add_tracker>`\ (\ tracker\: :ref:`XRTracker<class_XRTracker>`\ ) |
  42. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | |void| | :ref:`center_on_hmd<class_XRServer_method_center_on_hmd>`\ (\ rotation_mode\: :ref:`RotationMode<enum_XRServer_RotationMode>`, keep_height\: :ref:`bool<class_bool>`\ ) |
  44. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | |void| | :ref:`clear_reference_frame<class_XRServer_method_clear_reference_frame>`\ (\ ) |
  46. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`XRInterface<class_XRInterface>` | :ref:`find_interface<class_XRServer_method_find_interface>`\ (\ name\: :ref:`String<class_String>`\ ) |const| |
  48. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`Transform3D<class_Transform3D>` | :ref:`get_hmd_transform<class_XRServer_method_get_hmd_transform>`\ (\ ) |
  50. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`XRInterface<class_XRInterface>` | :ref:`get_interface<class_XRServer_method_get_interface>`\ (\ idx\: :ref:`int<class_int>`\ ) |const| |
  52. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`int<class_int>` | :ref:`get_interface_count<class_XRServer_method_get_interface_count>`\ (\ ) |const| |
  54. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] | :ref:`get_interfaces<class_XRServer_method_get_interfaces>`\ (\ ) |const| |
  56. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`Transform3D<class_Transform3D>` | :ref:`get_reference_frame<class_XRServer_method_get_reference_frame>`\ (\ ) |const| |
  58. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`XRTracker<class_XRTracker>` | :ref:`get_tracker<class_XRServer_method_get_tracker>`\ (\ tracker_name\: :ref:`StringName<class_StringName>`\ ) |const| |
  60. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`Dictionary<class_Dictionary>` | :ref:`get_trackers<class_XRServer_method_get_trackers>`\ (\ tracker_types\: :ref:`int<class_int>`\ ) |
  62. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | |void| | :ref:`remove_interface<class_XRServer_method_remove_interface>`\ (\ interface\: :ref:`XRInterface<class_XRInterface>`\ ) |
  64. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | |void| | :ref:`remove_tracker<class_XRServer_method_remove_tracker>`\ (\ tracker\: :ref:`XRTracker<class_XRTracker>`\ ) |
  66. +------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. .. rst-class:: classref-section-separator
  68. ----
  69. .. rst-class:: classref-descriptions-group
  70. Signals
  71. -------
  72. .. _class_XRServer_signal_interface_added:
  73. .. rst-class:: classref-signal
  74. **interface_added**\ (\ interface_name\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_XRServer_signal_interface_added>`
  75. Emitted when a new interface has been added.
  76. .. rst-class:: classref-item-separator
  77. ----
  78. .. _class_XRServer_signal_interface_removed:
  79. .. rst-class:: classref-signal
  80. **interface_removed**\ (\ interface_name\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_XRServer_signal_interface_removed>`
  81. Emitted when an interface is removed.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_XRServer_signal_reference_frame_changed:
  85. .. rst-class:: classref-signal
  86. **reference_frame_changed**\ (\ ) :ref:`🔗<class_XRServer_signal_reference_frame_changed>`
  87. Emitted when the reference frame transform changes.
  88. .. rst-class:: classref-item-separator
  89. ----
  90. .. _class_XRServer_signal_tracker_added:
  91. .. rst-class:: classref-signal
  92. **tracker_added**\ (\ tracker_name\: :ref:`StringName<class_StringName>`, type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_XRServer_signal_tracker_added>`
  93. Emitted when a new tracker has been added. If you don't use a fixed number of controllers or if you're using :ref:`XRAnchor3D<class_XRAnchor3D>`\ s for an AR solution, it is important to react to this signal to add the appropriate :ref:`XRController3D<class_XRController3D>` or :ref:`XRAnchor3D<class_XRAnchor3D>` nodes related to this new tracker.
  94. .. rst-class:: classref-item-separator
  95. ----
  96. .. _class_XRServer_signal_tracker_removed:
  97. .. rst-class:: classref-signal
  98. **tracker_removed**\ (\ tracker_name\: :ref:`StringName<class_StringName>`, type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_XRServer_signal_tracker_removed>`
  99. Emitted when a tracker is removed. You should remove any :ref:`XRController3D<class_XRController3D>` or :ref:`XRAnchor3D<class_XRAnchor3D>` points if applicable. This is not mandatory, the nodes simply become inactive and will be made active again when a new tracker becomes available (i.e. a new controller is switched on that takes the place of the previous one).
  100. .. rst-class:: classref-item-separator
  101. ----
  102. .. _class_XRServer_signal_tracker_updated:
  103. .. rst-class:: classref-signal
  104. **tracker_updated**\ (\ tracker_name\: :ref:`StringName<class_StringName>`, type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_XRServer_signal_tracker_updated>`
  105. Emitted when an existing tracker has been updated. This can happen if the user switches controllers.
  106. .. rst-class:: classref-section-separator
  107. ----
  108. .. rst-class:: classref-descriptions-group
  109. Enumerations
  110. ------------
  111. .. _enum_XRServer_TrackerType:
  112. .. rst-class:: classref-enumeration
  113. enum **TrackerType**: :ref:`🔗<enum_XRServer_TrackerType>`
  114. .. _class_XRServer_constant_TRACKER_HEAD:
  115. .. rst-class:: classref-enumeration-constant
  116. :ref:`TrackerType<enum_XRServer_TrackerType>` **TRACKER_HEAD** = ``1``
  117. The tracker tracks the location of the players head. This is usually a location centered between the players eyes. Note that for handheld AR devices this can be the current location of the device.
  118. .. _class_XRServer_constant_TRACKER_CONTROLLER:
  119. .. rst-class:: classref-enumeration-constant
  120. :ref:`TrackerType<enum_XRServer_TrackerType>` **TRACKER_CONTROLLER** = ``2``
  121. The tracker tracks the location of a controller.
  122. .. _class_XRServer_constant_TRACKER_BASESTATION:
  123. .. rst-class:: classref-enumeration-constant
  124. :ref:`TrackerType<enum_XRServer_TrackerType>` **TRACKER_BASESTATION** = ``4``
  125. The tracker tracks the location of a base station.
  126. .. _class_XRServer_constant_TRACKER_ANCHOR:
  127. .. rst-class:: classref-enumeration-constant
  128. :ref:`TrackerType<enum_XRServer_TrackerType>` **TRACKER_ANCHOR** = ``8``
  129. The tracker tracks the location and size of an AR anchor.
  130. .. _class_XRServer_constant_TRACKER_HAND:
  131. .. rst-class:: classref-enumeration-constant
  132. :ref:`TrackerType<enum_XRServer_TrackerType>` **TRACKER_HAND** = ``16``
  133. The tracker tracks the location and joints of a hand.
  134. .. _class_XRServer_constant_TRACKER_BODY:
  135. .. rst-class:: classref-enumeration-constant
  136. :ref:`TrackerType<enum_XRServer_TrackerType>` **TRACKER_BODY** = ``32``
  137. The tracker tracks the location and joints of a body.
  138. .. _class_XRServer_constant_TRACKER_FACE:
  139. .. rst-class:: classref-enumeration-constant
  140. :ref:`TrackerType<enum_XRServer_TrackerType>` **TRACKER_FACE** = ``64``
  141. The tracker tracks the expressions of a face.
  142. .. _class_XRServer_constant_TRACKER_ANY_KNOWN:
  143. .. rst-class:: classref-enumeration-constant
  144. :ref:`TrackerType<enum_XRServer_TrackerType>` **TRACKER_ANY_KNOWN** = ``127``
  145. Used internally to filter trackers of any known type.
  146. .. _class_XRServer_constant_TRACKER_UNKNOWN:
  147. .. rst-class:: classref-enumeration-constant
  148. :ref:`TrackerType<enum_XRServer_TrackerType>` **TRACKER_UNKNOWN** = ``128``
  149. Used internally if we haven't set the tracker type yet.
  150. .. _class_XRServer_constant_TRACKER_ANY:
  151. .. rst-class:: classref-enumeration-constant
  152. :ref:`TrackerType<enum_XRServer_TrackerType>` **TRACKER_ANY** = ``255``
  153. Used internally to select all trackers.
  154. .. rst-class:: classref-item-separator
  155. ----
  156. .. _enum_XRServer_RotationMode:
  157. .. rst-class:: classref-enumeration
  158. enum **RotationMode**: :ref:`🔗<enum_XRServer_RotationMode>`
  159. .. _class_XRServer_constant_RESET_FULL_ROTATION:
  160. .. rst-class:: classref-enumeration-constant
  161. :ref:`RotationMode<enum_XRServer_RotationMode>` **RESET_FULL_ROTATION** = ``0``
  162. Fully reset the orientation of the HMD. Regardless of what direction the user is looking to in the real world. The user will look dead ahead in the virtual world.
  163. .. _class_XRServer_constant_RESET_BUT_KEEP_TILT:
  164. .. rst-class:: classref-enumeration-constant
  165. :ref:`RotationMode<enum_XRServer_RotationMode>` **RESET_BUT_KEEP_TILT** = ``1``
  166. Resets the orientation but keeps the tilt of the device. So if we're looking down, we keep looking down but heading will be reset.
  167. .. _class_XRServer_constant_DONT_RESET_ROTATION:
  168. .. rst-class:: classref-enumeration-constant
  169. :ref:`RotationMode<enum_XRServer_RotationMode>` **DONT_RESET_ROTATION** = ``2``
  170. Does not reset the orientation of the HMD, only the position of the player gets centered.
  171. .. rst-class:: classref-section-separator
  172. ----
  173. .. rst-class:: classref-descriptions-group
  174. Property Descriptions
  175. ---------------------
  176. .. _class_XRServer_property_camera_locked_to_origin:
  177. .. rst-class:: classref-property
  178. :ref:`bool<class_bool>` **camera_locked_to_origin** = ``false`` :ref:`🔗<class_XRServer_property_camera_locked_to_origin>`
  179. .. rst-class:: classref-property-setget
  180. - |void| **set_camera_locked_to_origin**\ (\ value\: :ref:`bool<class_bool>`\ )
  181. - :ref:`bool<class_bool>` **is_camera_locked_to_origin**\ (\ )
  182. If set to ``true``, the scene will be rendered as if the camera is locked to the :ref:`XROrigin3D<class_XROrigin3D>`.
  183. \ **Note:** This doesn't provide a very comfortable experience for users. This setting exists for doing benchmarking or automated testing, where you want to control what is rendered via code.
  184. .. rst-class:: classref-item-separator
  185. ----
  186. .. _class_XRServer_property_primary_interface:
  187. .. rst-class:: classref-property
  188. :ref:`XRInterface<class_XRInterface>` **primary_interface** :ref:`🔗<class_XRServer_property_primary_interface>`
  189. .. rst-class:: classref-property-setget
  190. - |void| **set_primary_interface**\ (\ value\: :ref:`XRInterface<class_XRInterface>`\ )
  191. - :ref:`XRInterface<class_XRInterface>` **get_primary_interface**\ (\ )
  192. The primary :ref:`XRInterface<class_XRInterface>` currently bound to the **XRServer**.
  193. .. rst-class:: classref-item-separator
  194. ----
  195. .. _class_XRServer_property_world_origin:
  196. .. rst-class:: classref-property
  197. :ref:`Transform3D<class_Transform3D>` **world_origin** = ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` :ref:`🔗<class_XRServer_property_world_origin>`
  198. .. rst-class:: classref-property-setget
  199. - |void| **set_world_origin**\ (\ value\: :ref:`Transform3D<class_Transform3D>`\ )
  200. - :ref:`Transform3D<class_Transform3D>` **get_world_origin**\ (\ )
  201. The current origin of our tracking space in the virtual world. This is used by the renderer to properly position the camera with new tracking data.
  202. \ **Note:** This property is managed by the current :ref:`XROrigin3D<class_XROrigin3D>` node. It is exposed for access from GDExtensions.
  203. .. rst-class:: classref-item-separator
  204. ----
  205. .. _class_XRServer_property_world_scale:
  206. .. rst-class:: classref-property
  207. :ref:`float<class_float>` **world_scale** = ``1.0`` :ref:`🔗<class_XRServer_property_world_scale>`
  208. .. rst-class:: classref-property-setget
  209. - |void| **set_world_scale**\ (\ value\: :ref:`float<class_float>`\ )
  210. - :ref:`float<class_float>` **get_world_scale**\ (\ )
  211. The scale of the game world compared to the real world. By default, most AR/VR platforms assume that 1 game unit corresponds to 1 real world meter.
  212. .. rst-class:: classref-section-separator
  213. ----
  214. .. rst-class:: classref-descriptions-group
  215. Method Descriptions
  216. -------------------
  217. .. _class_XRServer_method_add_interface:
  218. .. rst-class:: classref-method
  219. |void| **add_interface**\ (\ interface\: :ref:`XRInterface<class_XRInterface>`\ ) :ref:`🔗<class_XRServer_method_add_interface>`
  220. Registers an :ref:`XRInterface<class_XRInterface>` object.
  221. .. rst-class:: classref-item-separator
  222. ----
  223. .. _class_XRServer_method_add_tracker:
  224. .. rst-class:: classref-method
  225. |void| **add_tracker**\ (\ tracker\: :ref:`XRTracker<class_XRTracker>`\ ) :ref:`🔗<class_XRServer_method_add_tracker>`
  226. Registers a new :ref:`XRTracker<class_XRTracker>` that tracks a physical object.
  227. .. rst-class:: classref-item-separator
  228. ----
  229. .. _class_XRServer_method_center_on_hmd:
  230. .. rst-class:: classref-method
  231. |void| **center_on_hmd**\ (\ rotation_mode\: :ref:`RotationMode<enum_XRServer_RotationMode>`, keep_height\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_XRServer_method_center_on_hmd>`
  232. This is an important function to understand correctly. AR and VR platforms all handle positioning slightly differently.
  233. For platforms that do not offer spatial tracking, our origin point (0, 0, 0) is the location of our HMD, but you have little control over the direction the player is facing in the real world.
  234. For platforms that do offer spatial tracking, our origin point depends very much on the system. For OpenVR, our origin point is usually the center of the tracking space, on the ground. For other platforms, it's often the location of the tracking camera.
  235. This method allows you to center your tracker on the location of the HMD. It will take the current location of the HMD and use that to adjust all your tracking data; in essence, realigning the real world to your player's current position in the game world.
  236. For this method to produce usable results, tracking information must be available. This often takes a few frames after starting your game.
  237. You should call this method after a few seconds have passed. For example, when the user requests a realignment of the display holding a designated button on a controller for a short period of time, or when implementing a teleport mechanism.
  238. .. rst-class:: classref-item-separator
  239. ----
  240. .. _class_XRServer_method_clear_reference_frame:
  241. .. rst-class:: classref-method
  242. |void| **clear_reference_frame**\ (\ ) :ref:`🔗<class_XRServer_method_clear_reference_frame>`
  243. Clears the reference frame that was set by previous calls to :ref:`center_on_hmd<class_XRServer_method_center_on_hmd>`.
  244. .. rst-class:: classref-item-separator
  245. ----
  246. .. _class_XRServer_method_find_interface:
  247. .. rst-class:: classref-method
  248. :ref:`XRInterface<class_XRInterface>` **find_interface**\ (\ name\: :ref:`String<class_String>`\ ) |const| :ref:`🔗<class_XRServer_method_find_interface>`
  249. Finds an interface by its ``name``. For example, if your project uses capabilities of an AR/VR platform, you can find the interface for that platform by name and initialize it.
  250. .. rst-class:: classref-item-separator
  251. ----
  252. .. _class_XRServer_method_get_hmd_transform:
  253. .. rst-class:: classref-method
  254. :ref:`Transform3D<class_Transform3D>` **get_hmd_transform**\ (\ ) :ref:`🔗<class_XRServer_method_get_hmd_transform>`
  255. Returns the primary interface's transformation.
  256. .. rst-class:: classref-item-separator
  257. ----
  258. .. _class_XRServer_method_get_interface:
  259. .. rst-class:: classref-method
  260. :ref:`XRInterface<class_XRInterface>` **get_interface**\ (\ idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_XRServer_method_get_interface>`
  261. Returns the interface registered at the given ``idx`` index in the list of interfaces.
  262. .. rst-class:: classref-item-separator
  263. ----
  264. .. _class_XRServer_method_get_interface_count:
  265. .. rst-class:: classref-method
  266. :ref:`int<class_int>` **get_interface_count**\ (\ ) |const| :ref:`🔗<class_XRServer_method_get_interface_count>`
  267. Returns the number of interfaces currently registered with the AR/VR server. If your project supports multiple AR/VR platforms, you can look through the available interface, and either present the user with a selection or simply try to initialize each interface and use the first one that returns ``true``.
  268. .. rst-class:: classref-item-separator
  269. ----
  270. .. _class_XRServer_method_get_interfaces:
  271. .. rst-class:: classref-method
  272. :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] **get_interfaces**\ (\ ) |const| :ref:`🔗<class_XRServer_method_get_interfaces>`
  273. Returns a list of available interfaces the ID and name of each interface.
  274. .. rst-class:: classref-item-separator
  275. ----
  276. .. _class_XRServer_method_get_reference_frame:
  277. .. rst-class:: classref-method
  278. :ref:`Transform3D<class_Transform3D>` **get_reference_frame**\ (\ ) |const| :ref:`🔗<class_XRServer_method_get_reference_frame>`
  279. Returns the reference frame transform. Mostly used internally and exposed for GDExtension build interfaces.
  280. .. rst-class:: classref-item-separator
  281. ----
  282. .. _class_XRServer_method_get_tracker:
  283. .. rst-class:: classref-method
  284. :ref:`XRTracker<class_XRTracker>` **get_tracker**\ (\ tracker_name\: :ref:`StringName<class_StringName>`\ ) |const| :ref:`🔗<class_XRServer_method_get_tracker>`
  285. Returns the positional tracker with the given ``tracker_name``.
  286. .. rst-class:: classref-item-separator
  287. ----
  288. .. _class_XRServer_method_get_trackers:
  289. .. rst-class:: classref-method
  290. :ref:`Dictionary<class_Dictionary>` **get_trackers**\ (\ tracker_types\: :ref:`int<class_int>`\ ) :ref:`🔗<class_XRServer_method_get_trackers>`
  291. Returns a dictionary of trackers for ``tracker_types``.
  292. .. rst-class:: classref-item-separator
  293. ----
  294. .. _class_XRServer_method_remove_interface:
  295. .. rst-class:: classref-method
  296. |void| **remove_interface**\ (\ interface\: :ref:`XRInterface<class_XRInterface>`\ ) :ref:`🔗<class_XRServer_method_remove_interface>`
  297. Removes this ``interface``.
  298. .. rst-class:: classref-item-separator
  299. ----
  300. .. _class_XRServer_method_remove_tracker:
  301. .. rst-class:: classref-method
  302. |void| **remove_tracker**\ (\ tracker\: :ref:`XRTracker<class_XRTracker>`\ ) :ref:`🔗<class_XRServer_method_remove_tracker>`
  303. Removes this ``tracker``.
  304. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  305. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  306. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  307. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  308. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  309. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  310. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  311. .. |void| replace:: :abbr:`void (No return value.)`