Class XRControllerState | XR Interaction Toolkit | 0.10.0-preview.7
docs.unity3d.com
    Show / Hide Table of Contents

    Class XRControllerState

    Inheritance
    Object
    XRControllerState
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    [Serializable]
    public class XRControllerState

    Constructors

    XRControllerState()

    Declaration
    public XRControllerState()

    XRControllerState(Double, Vector3, Quaternion, Boolean, Boolean, Boolean)

    Declaration
    public XRControllerState(double time, Vector3 position, Quaternion rotation, bool selectActive, bool activateActive, bool pressActive)
    Parameters
    Type Name Description
    Double time
    Vector3 position
    Quaternion rotation
    Boolean selectActive
    Boolean activateActive
    Boolean pressActive

    XRControllerState(XRControllerState)

    Declaration
    public XRControllerState(XRControllerState value)
    Parameters
    Type Name Description
    XRControllerState value

    Fields

    activateInteractionState

    Declaration
    public InteractionState activateInteractionState
    Field Value
    Type Description
    InteractionState

    poseDataFlags

    Declaration
    public PoseDataFlags poseDataFlags
    Field Value
    Type Description
    PoseDataFlags

    position

    Declaration
    public Vector3 position
    Field Value
    Type Description
    Vector3

    rotation

    Declaration
    public Quaternion rotation
    Field Value
    Type Description
    Quaternion

    selectInteractionState

    Declaration
    public InteractionState selectInteractionState
    Field Value
    Type Description
    InteractionState

    time

    Declaration
    public double time
    Field Value
    Type Description
    Double

    uiPressInteractionState

    Declaration
    public InteractionState uiPressInteractionState
    Field Value
    Type Description
    InteractionState

    Methods

    ResetFrameDependentStates()

    Resets all the interaction states that are based on whether they occurred "this frame".

    Declaration
    public void ResetFrameDependentStates()
    See Also
    ResetFrameDependent()

    ResetInputs()

    Declaration
    [Obsolete("ResetInputs has been renamed. Use ResetFrameDependentStates instead. (UnityUpgradable) -> ResetFrameDependentStates()")]
    public void ResetInputs()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    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