docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MockAdditiveFeature

    Inheritance
    object
    Object
    ScriptableObject
    OpenXRFeature
    OpenXRInteractionFeature
    MockAdditiveFeature
    Inherited Members
    OpenXRInteractionFeature.RegisterDeviceLayout()
    OpenXRInteractionFeature.UnregisterDeviceLayout()
    OpenXRInteractionFeature.OnInstanceCreate(ulong)
    OpenXRInteractionFeature.GetInteractionProfileType()
    OpenXRInteractionFeature.AddActionMap(OpenXRInteractionFeature.ActionMapConfig)
    OpenXRInteractionFeature.OnEnabledChange()
    OpenXRFeature.HookGetInstanceProcAddr(IntPtr)
    OpenXRFeature.OnSubsystemCreate()
    OpenXRFeature.OnSubsystemStart()
    OpenXRFeature.OnSubsystemStop()
    OpenXRFeature.OnSubsystemDestroy()
    OpenXRFeature.OnSystemChange(ulong)
    OpenXRFeature.OnSessionCreate(ulong)
    OpenXRFeature.OnAppSpaceChange(ulong)
    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.GetValidationChecks(List<OpenXRFeature.ValidationRule>, BuildTargetGroup)
    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)
    OpenXRFeature.enabled
    OpenXRFeature.xrGetInstanceProcAddr
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    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, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, InstantiateParameters)
    Object.InstantiateAsync<T>(T, int, InstantiateParameters)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion, InstantiateParameters)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, InstantiateParameters)
    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.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.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.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.OpenXR.Tests
    Assembly: Unity.XR.OpenXR.Tests.dll
    Syntax
    [OpenXRFeature(UiName = "Mock Meta Controller", BuildTargetGroups = new BuildTargetGroup[] { BuildTargetGroup.Standalone, BuildTargetGroup.Android }, Company = "MockUnity", Desc = "Adds a mock additive pose/button to a new controller profile.", Version = "0.0.1", Category = "Feature", Hidden = true, FeatureId = "com.unity.openxr.feature.input.partner.additive")]
    public class MockAdditiveFeature : OpenXRInteractionFeature

    Fields

    MergeDetails

    Stores merged additive actions for all features (used for testing).

    Declaration
    public static readonly List<(string profile, List<(string name, string type, List<string> bindPaths, bool isAdditive)>)> MergeDetails
    Field Value
    Type Description
    List<(string profile, List<(string name, string type, List<string> bindPaths, bool isAdditive)>)>

    mockAuxButtonPath

    The OpenXR path representing the mock auxiliary button action.

    Declaration
    public const string mockAuxButtonPath = "/input/aux_ext/click"
    Field Value
    Type Description
    string

    mockThumbPosePath

    The OpenXR path representing the mock thumb pose action.

    Declaration
    public const string mockThumbPosePath = "/input/thumb_ext/pose"
    Field Value
    Type Description
    string

    targetProfile

    The target interaction profile name.

    Declaration
    public const string targetProfile = "/interaction_profiles/mockmeta/controller"
    Field Value
    Type Description
    string

    Properties

    IsAdditive

    A flag to mark this feature as additive.

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

    m_AdditiveMap

    The additive action map configuration for this mock feature.

    Declaration
    protected OpenXRInteractionFeature.ActionMapConfig m_AdditiveMap { get; set; }
    Property Value
    Type Description
    OpenXRInteractionFeature.ActionMapConfig

    Methods

    AddAdditiveActions(List<ActionMapConfig>, ActionMapConfig)

    Processes additive actions to add to an existing controller. This function has to copy values to merge details in order to see if actions were merged correctly.

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

    Action maps to extend.

    OpenXRInteractionFeature.ActionMapConfig additiveMap

    The additive map to merge.

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

    GetDeviceLayoutName()

    Name of the device layout associated with this mock feature.

    Declaration
    protected override string GetDeviceLayoutName()
    Returns
    Type Description
    string

    Returns string with device layout name.

    Overrides
    OpenXRInteractionFeature.GetDeviceLayoutName()

    RegisterActionMapsWithRuntime()

    Registers thumb pose and aux click.

    Declaration
    protected override void RegisterActionMapsWithRuntime()
    Overrides
    OpenXRInteractionFeature.RegisterActionMapsWithRuntime()
    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)