docs.unity3d.com
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.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public class XRBaseInputInteractor.LogicalInputState

    Properties

    active

    Whether the logical input state is currently active.

    Declaration
    public bool active { get; }
    Property Value
    Type Description
    bool
    See Also
    XRBaseInputInteractor.InputTriggerType

    isPerformed

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

    Declaration
    public bool isPerformed { get; }
    Property Value
    Type Description
    bool
    See Also
    ReadIsPerformed()

    mode

    The type of input

    Declaration
    public XRBaseInputInteractor.InputTriggerType mode { get; set; }
    Property Value
    Type Description
    XRBaseInputInteractor.InputTriggerType
    See Also
    XRBaseInputInteractor.InputTriggerType

    wasCompletedThisFrame

    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.

    Declaration
    public bool wasCompletedThisFrame { get; }
    Property Value
    Type Description
    bool
    See Also
    XRBaseInputInteractor.InputTriggerType

    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.

    Declaration
    public bool wasPerformedThisFrame { get; }
    Property Value
    Type Description
    bool
    See Also
    ReadWasPerformedThisFrame()

    See Also

    XRBaseInputInteractor.InputTriggerType
    In This Article
    Back to top
    Copyright © 2025 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)