Class LocomotionStateExtensions
Extension methods for LocomotionState.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public static class LocomotionStateExtensions
Methods
IsActive(LocomotionState)
Whether this is the state of actively preparing or performing locomotion. This returns true
if state
is Preparing or Moving,
false otherwise.
Declaration
public static bool IsActive(this LocomotionState state)
Parameters
Type | Name | Description |
---|---|---|
LocomotionState | state | The locomotion state to check. |
Returns
Type | Description |
---|---|
bool | Returns true if |