Class XRDeviceSimulator.SimulatedHandExpression
A hand expression that can be simulated by performing an input action.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation
Syntax
[Serializable]
public class SimulatedHandExpression : ISerializationCallbackReceiver
Properties
icon
Sprite icon for the simulated hand expression.
Declaration
public Sprite icon { get; }
Property Value
Type | Description |
---|---|
Sprite |
name
The name of the hand expression to simulate when the input action is performed.
Declaration
public string name { get; }
Property Value
Type | Description |
---|---|
String |
toggleAction
The input action reference to trigger this simulated hand expression.
Declaration
public InputActionReference toggleAction { get; }
Property Value
Type | Description |
---|---|
InputActionReference |
Events
performed
Event that is called when the input action for the simulated hand expression is performed.
Declaration
public event Action<XRDeviceSimulator.SimulatedHandExpression, InputAction.CallbackContext> performed
Event Type
Type | Description |
---|---|
Action<XRDeviceSimulator.SimulatedHandExpression, InputAction.CallbackContext> |
Remarks
Wraps the performed action of the toggleAction in order to add a reference to this class in the callback method signature.
Explicit Interface Implementations
ISerializationCallbackReceiver.OnAfterDeserialize()
Declaration
void ISerializationCallbackReceiver.OnAfterDeserialize()
Implements
ISerializationCallbackReceiver.OnBeforeSerialize()
Declaration
void ISerializationCallbackReceiver.OnBeforeSerialize()