Class XRDeviceSimulator.SimulatedHandExpression
A hand expression that can be simulated by performing an input action.
Implements
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[Serializable]
public class XRDeviceSimulator.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.