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.
Inherited Members
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
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
mode
The type of input
Declaration
public XRBaseInputInteractor.InputTriggerType mode { get; set; }
Property Value
Type | Description |
---|---|
XRBaseInputInteractor.InputTriggerType |
See Also
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
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 |