docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HandInteractionProfileMicrogestures

    An additive interaction feature that binds to the microgesture inputs the XR_META_hand_tracking_microgestures OpenXR extension adds to the Hand Interaction Profile.

    Inheritance
    object
    Object
    ScriptableObject
    OpenXRFeature
    OpenXRInteractionFeature
    HandInteractionProfileMicrogestures
    Inherited Members
    OpenXRInteractionFeature.AddActionMap(OpenXRInteractionFeature.ActionMapConfig)
    OpenXRInteractionFeature.OnEnabledChange()
    OpenXRInteractionFeature.OpenXRLoaderEnabledForSelectedBuildTarget(BuildTargetGroup)
    OpenXRFeature.enabled
    OpenXRFeature.ShouldUseExtension(string)
    OpenXRFeature.GetExtensions()
    OpenXRFeature.xrGetInstanceProcAddr
    OpenXRFeature.HookGetInstanceProcAddr(IntPtr)
    OpenXRFeature.OnSubsystemCreate()
    OpenXRFeature.OnSubsystemStart()
    OpenXRFeature.OnSubsystemStop()
    OpenXRFeature.OnSubsystemDestroy()
    OpenXRFeature.OnSystemChange(ulong)
    OpenXRFeature.OnSessionCreate(ulong)
    OpenXRFeature.OnAppSpaceChange(ulong)
    OpenXRFeature.OnReferenceSpaceChanged(ulong, Pose?)
    OpenXRFeature.OnSessionStateChange(int, int)
    OpenXRFeature.OnSessionBegin(ulong)
    OpenXRFeature.OnSessionEnd(ulong)
    OpenXRFeature.OnSessionExiting(ulong)
    OpenXRFeature.OnSessionDestroy(ulong)
    OpenXRFeature.OnInstanceDestroy(ulong)
    OpenXRFeature.OnSessionLossPending(ulong)
    OpenXRFeature.OnInstanceLossPending(ulong)
    OpenXRFeature.OnFormFactorChange(int)
    OpenXRFeature.OnViewConfigurationTypeChange(int)
    OpenXRFeature.OnEnvironmentBlendModeChange(XrEnvironmentBlendMode)
    OpenXRFeature.PathToString(ulong)
    OpenXRFeature.StringToPath(string)
    OpenXRFeature.GetCurrentInteractionProfile(ulong)
    OpenXRFeature.GetCurrentInteractionProfile(string)
    OpenXRFeature.GetCurrentAppSpace()
    OpenXRFeature.GetViewConfigurationTypeForRenderPass(int)
    OpenXRFeature.SetEnvironmentBlendMode(XrEnvironmentBlendMode)
    OpenXRFeature.GetEnvironmentBlendMode()
    OpenXRFeature.CreateSubsystem<TDescriptor, TSubsystem>(List<TDescriptor>, string)
    OpenXRFeature.StartSubsystem<T>()
    OpenXRFeature.StopSubsystem<T>()
    OpenXRFeature.DestroySubsystem<T>()
    OpenXRFeature.OnEnable()
    OpenXRFeature.OnDisable()
    OpenXRFeature.Awake()
    OpenXRFeature.GetAction(InputAction)
    OpenXRFeature.GetAction(InputDevice, InputFeatureUsage)
    OpenXRFeature.GetAction(InputDevice, string)
    OpenXRFeature.RegisterStatsDescriptor(string, OpenXRFeature.StatFlags)
    OpenXRFeature.SetStatAsFloat(ulong, float)
    OpenXRFeature.SetStatAsUInt(ulong, uint)
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetEntityId()
    Object.MemberwiseClone()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, CancellationToken)
    Object.InstantiateAsync<T>(T, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, InstantiateParameters, CancellationToken)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate<T>(T, InstantiateParameters)
    Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectsByType(Type)
    Object.FindObjectsByType(Type, FindObjectsInactive)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsByType<T>()
    Object.FindObjectsByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.OpenXR.Features.Interactions
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public class HandInteractionProfileMicrogestures : OpenXRInteractionFeature
    Remarks

    This feature requires the HandInteractionProfile feature. When the runtime supports the extension, Unity creates a HandInteractionProfileMicrogestures.HandInteractionMicrogestures device for each hand, which exposes the microgesture controls.

    For more information, refer to [Hand Interaction Profile Microgestures](xref:openxr-hand-interaction-profile-microgestures).

    Fields

    extensionString

    The name of the OpenXR extension that this feature requires.

    Declaration
    public const string extensionString = "XR_META_hand_tracking_microgestures"
    Field Value
    Type Description
    string
    See Also
    HandInteractionProfile

    featureId

    The unique ID of this feature.

    Declaration
    public const string featureId = "com.unity.openxr.feature.input.handinteractionmicrogestures"
    Field Value
    Type Description
    string
    See Also
    HandInteractionProfile

    profile

    The OpenXR interaction profile path that the microgesture bindings use. Equal to profile.

    Declaration
    public const string profile = "/interaction_profiles/ext/hand_interaction_ext"
    Field Value
    Type Description
    string
    See Also
    HandInteractionProfile

    swipeBackward

    The OpenXR component path of the swipe backward microgesture input.

    Declaration
    public const string swipeBackward = "/input/swipe_backward_meta/click"
    Field Value
    Type Description
    string
    See Also
    HandInteractionProfile

    swipeForward

    The OpenXR component path of the swipe forward microgesture input.

    Declaration
    public const string swipeForward = "/input/swipe_forward_meta/click"
    Field Value
    Type Description
    string
    See Also
    HandInteractionProfile

    swipeLeft

    The OpenXR component path of the swipe left microgesture input.

    Declaration
    public const string swipeLeft = "/input/swipe_left_meta/click"
    Field Value
    Type Description
    string
    See Also
    HandInteractionProfile

    swipeRight

    The OpenXR component path of the swipe right microgesture input.

    Declaration
    public const string swipeRight = "/input/swipe_right_meta/click"
    Field Value
    Type Description
    string
    See Also
    HandInteractionProfile

    tapThumb

    The OpenXR component path of the thumb tap microgesture input.

    Declaration
    public const string tapThumb = "/input/tap_thumb_meta/click"
    Field Value
    Type Description
    string
    See Also
    HandInteractionProfile

    Properties

    IsAdditive

    Whether this feature adds its actions to other enabled interaction profiles instead of acting as an interaction profile on its own.

    Declaration
    protected override bool IsAdditive { get; }
    Property Value
    Type Description
    bool
    Overrides
    OpenXRInteractionFeature.IsAdditive
    Remarks

    Always true. This feature adds its actions to the Hand Interaction Profile.

    See Also
    HandInteractionProfile

    Methods

    AddAdditiveActions(List<ActionMapConfig>, ActionMapConfig)

    Adds the microgesture actions to each enabled Hand Interaction Profile action map.

    Declaration
    protected override void AddAdditiveActions(List<OpenXRInteractionFeature.ActionMapConfig> actionMaps, OpenXRInteractionFeature.ActionMapConfig additiveMap)
    Parameters
    Type Name Description
    List<OpenXRInteractionFeature.ActionMapConfig> actionMaps

    Action maps from all enabled non-additive interaction profiles.

    OpenXRInteractionFeature.ActionMapConfig additiveMap

    This feature's action map, which contains the microgesture actions to add.

    Overrides
    OpenXRInteractionFeature.AddAdditiveActions(List<OpenXRInteractionFeature.ActionMapConfig>, OpenXRInteractionFeature.ActionMapConfig)
    Remarks

    Unity calls this method during OpenXR initialization when this feature is enabled. Action maps for other interaction profiles are unchanged.

    See Also
    HandInteractionProfile

    GetDeviceLayoutName()

    Obtains the name of the device layout that this feature registers with the Input System.

    Declaration
    protected override string GetDeviceLayoutName()
    Returns
    Type Description
    string

    The name of the HandInteractionProfileMicrogestures.HandInteractionMicrogestures layout.

    Overrides
    OpenXRInteractionFeature.GetDeviceLayoutName()
    See Also
    HandInteractionProfile

    GetInteractionProfileType()

    Returns InteractionProfileType.Device, because HandInteractionProfileMicrogestures.HandInteractionMicrogestures isn't an XRController.

    Declaration
    protected override OpenXRInteractionFeature.InteractionProfileType GetInteractionProfileType()
    Returns
    Type Description
    OpenXRInteractionFeature.InteractionProfileType

    The interaction profile type.

    Overrides
    OpenXRInteractionFeature.GetInteractionProfileType()
    See Also
    HandInteractionProfile

    GetValidationChecks(List<ValidationRule>, BuildTargetGroup)

    Adds a validation rule that requires the Hand Interaction Profile feature.

    Declaration
    protected override void GetValidationChecks(List<OpenXRFeature.ValidationRule> results, BuildTargetGroup target)
    Parameters
    Type Name Description
    List<OpenXRFeature.ValidationRule> results

    List to add the validation rules to.

    BuildTargetGroup target

    Build target group to validate.

    Overrides
    OpenXRFeature.GetValidationChecks(List<OpenXRFeature.ValidationRule>, BuildTargetGroup)
    See Also
    HandInteractionProfile

    OnExtensionsReady(ulong)

    Registers the HandInteractionProfileMicrogestures.HandInteractionMicrogestures layout with the Input System if the runtime supports the XR_META_hand_tracking_microgestures extension.

    Declaration
    protected override bool OnExtensionsReady(ulong instance)
    Parameters
    Type Name Description
    ulong instance

    Handle of the OpenXR instance.

    Returns
    Type Description
    bool

    true if the runtime supports the extension. Otherwise, false, and Unity disables this feature.

    Overrides
    OpenXRFeature.OnExtensionsReady(ulong)
    See Also
    HandInteractionProfile

    OnInstanceCreate(ulong)

    Defers instance setup until OnExtensionsReady(ulong).

    Declaration
    protected override bool OnInstanceCreate(ulong instance)
    Parameters
    Type Name Description
    ulong instance

    Handle of the OpenXR instance.

    Returns
    Type Description
    bool

    Always true.

    Overrides
    OpenXRInteractionFeature.OnInstanceCreate(ulong)
    See Also
    HandInteractionProfile

    RegisterActionMapsWithRuntime()

    Registers the microgesture action map with the runtime.

    Declaration
    protected override void RegisterActionMapsWithRuntime()
    Overrides
    OpenXRInteractionFeature.RegisterActionMapsWithRuntime()
    See Also
    HandInteractionProfile

    RegisterDeviceLayout()

    Registers the HandInteractionProfileMicrogestures.HandInteractionMicrogestures layout with the Input System.

    Declaration
    protected override void RegisterDeviceLayout()
    Overrides
    OpenXRInteractionFeature.RegisterDeviceLayout()
    See Also
    HandInteractionProfile

    UnregisterDeviceLayout()

    Removes the HandInteractionProfileMicrogestures.HandInteractionMicrogestures layout from the Input System.

    Declaration
    protected override void UnregisterDeviceLayout()
    Overrides
    OpenXRInteractionFeature.UnregisterDeviceLayout()
    See Also
    HandInteractionProfile

    See Also

    HandInteractionProfile
    In This Article
    Back to top
    Copyright © 2026 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)