docs.unity.cn
    Show / Hide Table of Contents

    Class XRDeviceSimulator.SimulatedHandExpression

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

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

    ISerializationCallbackReceiver.OnBeforeSerialize()

    Declaration
    void ISerializationCallbackReceiver.OnBeforeSerialize()
    Implements
    ISerializationCallbackReceiver.OnBeforeSerialize()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Tuesday, August 22, 2023