0.2.0-dev Download ZIP
30 lines ·1.8 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="XRTracker" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | A tracked object. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | This object is the base of all XR trackers. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | <link title="XR documentation index">$DOCS_URL/tutorials/xr/index.html</link> |
| 11 | </tutorials> |
| 12 | <members> |
| 13 | <member name="description" type="String" setter="set_tracker_desc" getter="get_tracker_desc" default=""""> |
| 14 | The description of this tracker. |
| 15 | </member> |
| 16 | <member name="name" type="StringName" setter="set_tracker_name" getter="get_tracker_name" default="&"Unknown""> |
| 17 | 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 [XRInterface] to implement if applicable: |
| 18 | - [code]"head"[/code] identifies the [XRPositionalTracker] of the player's head |
| 19 | - [code]"left_hand"[/code] identifies the [XRControllerTracker] in the player's left hand |
| 20 | - [code]"right_hand"[/code] identifies the [XRControllerTracker] in the player's right hand |
| 21 | - [code]"/user/hand_tracker/left"[/code] identifies the [XRHandTracker] for the player's left hand |
| 22 | - [code]"/user/hand_tracker/right"[/code] identifies the [XRHandTracker] for the player's right hand |
| 23 | - [code]"/user/body_tracker"[/code] identifies the [XRBodyTracker] for the player's body |
| 24 | - [code]"/user/face_tracker"[/code] identifies the [XRFaceTracker] for the player's face |
| 25 | </member> |
| 26 | <member name="type" type="int" setter="set_tracker_type" getter="get_tracker_type" enum="XRServer.TrackerType" default="128"> |
| 27 | The type of tracker. |
| 28 | </member> |
| 29 | </members> |
| 30 | </class> |