docs.unity.cn
    Show / Hide Table of Contents

    Class PoseControl

    Input System control that wraps up a Pose structure. All individual pose elements can be referenced separately. See for more details.

    Inheritance
    Object
    PoseControl
    Namespace: UnityEngine.XR.OpenXR.Input
    Syntax
    public class PoseControl : InputControl<Pose>

    Constructors

    PoseControl()

    Default Constructor required by the Input System for instantiation.

    Declaration
    public PoseControl()

    Properties

    angularVelocity

    Separate access to the angularVelocity value.

    Declaration
    public Vector3Control angularVelocity { get; }
    Property Value
    Type Description
    Vector3Control

    isTracked

    Separate access to the isTracked value.

    Declaration
    public ButtonControl isTracked { get; }
    Property Value
    Type Description
    ButtonControl

    position

    Separate access to the position value.

    Declaration
    public Vector3Control position { get; }
    Property Value
    Type Description
    Vector3Control

    rotation

    Separate access to the rotation value.

    Declaration
    public QuaternionControl rotation { get; }
    Property Value
    Type Description
    QuaternionControl

    trackingState

    Separate access to the trackingState value.

    Declaration
    public IntegerControl trackingState { get; }
    Property Value
    Type Description
    IntegerControl

    velocity

    Separate access to the velocity value.

    Declaration
    public Vector3Control velocity { get; }
    Property Value
    Type Description
    Vector3Control

    Methods

    FinishSetup()

    See InputControl.FinishSetup

    Declaration
    protected override void FinishSetup()

    ReadUnprocessedValueFromState(Void*)

    Read unprocessed state values from the input control state.

    Declaration
    public override Pose ReadUnprocessedValueFromState(void *statePtr)
    Parameters
    Type Name Description
    Void* statePtr

    State data to read from.

    Returns
    Type Description
    Pose

    The pose data from the unprocessed state.

    WriteValueIntoState(Pose, Void*)

    Write value data into input control state.

    Declaration
    public override void WriteValueIntoState(Pose value, void *statePtr)
    Parameters
    Type Name Description
    Pose value

    The value to write into the control state.

    Void* statePtr

    A pointer to the control state data.

    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Thursday, December 2, 2021
    Terms of use