docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class XRBaseInputInteractor.LogicalInputState

    Interpreted input from an input reader. Represents the logical state of an interaction input, such as the select input, which may not be the same as the physical state of the input.

    Inheritance
    object
    XRBaseInputInteractor.LogicalInputState
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Assembly: solution.dll
    Syntax
    public class XRBaseInputInteractor.LogicalInputState

    Properties

    Name Description
    active

    Whether the logical input state is currently active.

    isPerformed

    Read whether the button is currently performed, which typically means whether the button is being pressed. This is typically true for multiple frames.

    mode

    The type of input

    wasPerformedThisFrame

    Read whether the button performed this frame, which typically means whether the button started being pressed during this frame. This is typically only true for one single frame.

    wasUnperformedThisFrame

    Read whether the button stopped performing this frame, which typically means whether the button stopped being pressed during this frame. This is typically only true for one single frame.

    See Also

    XRBaseInputInteractor.InputTriggerType
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)