docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRDeviceSimulator.SimulatedHandExpression

    A hand expression that can be simulated by performing an input action.

    Inheritance
    object
    XRDeviceSimulator.SimulatedHandExpression
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Implements

    ISerializationCallbackReceiver
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)