Class TrackedPoseDriver
The TrackedPoseDriver component applies the current Pose value of a tracked device to the transform of the GameObject. TrackedPoseDriver can track multiple types of devices including XR HMDs, controllers, and remotes.
Inheritance
System.Object
TrackedPoseDriver
Namespace: UnityEngine.InputSystem.XR
Syntax
[Serializable]
public class TrackedPoseDriver : MonoBehaviour
Properties
positionAction
Declaration
public InputAction positionAction { get; set; }
Property Value
Type | Description |
---|---|
InputAction |
rotationAction
Declaration
public InputAction rotationAction { get; set; }
Property Value
Type | Description |
---|---|
InputAction |
trackingType
The tracking type being used by the tracked pose driver
Declaration
public TrackedPoseDriver.TrackingType trackingType { get; set; }
Property Value
Type | Description |
---|---|
TrackedPoseDriver.TrackingType |
updateType
The update type being used by the tracked pose driver
Declaration
public TrackedPoseDriver.UpdateType updateType { get; set; }
Property Value
Type | Description |
---|---|
TrackedPoseDriver.UpdateType |
Methods
Awake()
Declaration
protected virtual void Awake()
OnBeforeRender()
Declaration
protected virtual void OnBeforeRender()
OnDestroy()
Declaration
protected virtual void OnDestroy()
OnEnable()
Declaration
protected void OnEnable()
OnUpdate()
Declaration
protected virtual void OnUpdate()
PerformUpdate()
Declaration
protected virtual void PerformUpdate()
SetLocalTransform(Vector3, Quaternion)
Declaration
protected virtual void SetLocalTransform(Vector3 newPosition, Quaternion newRotation)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | newPosition | |
Quaternion | newRotation |
UpdateCallback()
Declaration
protected void UpdateCallback()