Interface IXRInputButtonReader
Interface which allows for callers to read the button's state from an input source.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Readers
Assembly: solution.dll
Syntax
public interface IXRInputButtonReader : IXRInputValueReader<float>, IXRInputValueReader
Methods
| Name | Description |
|---|---|
| ReadIsPerformed() | Read whether the button is currently performed, which typically means whether the button is being pressed. This is typically true for multiple frames. |
| ReadWasPerformedThisFrame() | 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. |