Class TrackedPoseDriver | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    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()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023