docs.unity3d.com
    Show / Hide Table of Contents

    Class ConformanceAutomationFeature

    This OpenXRFeature implements XR_EXT_conformance_automation. See https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_conformance_automation

    Inheritance
    Object
    Object
    ScriptableObject
    OpenXRFeature
    ConformanceAutomationFeature
    Inherited Members
    OpenXRFeature.enabled
    OpenXRFeature.xrGetInstanceProcAddr
    OpenXRFeature.HookGetInstanceProcAddr(IntPtr)
    OpenXRFeature.OnSubsystemCreate()
    OpenXRFeature.OnSubsystemStart()
    OpenXRFeature.OnSubsystemStop()
    OpenXRFeature.OnSubsystemDestroy()
    OpenXRFeature.OnSystemChange(UInt64)
    OpenXRFeature.OnAppSpaceChange(UInt64)
    OpenXRFeature.OnSessionStateChange(Int32, Int32)
    OpenXRFeature.OnSessionBegin(UInt64)
    OpenXRFeature.OnSessionEnd(UInt64)
    OpenXRFeature.OnSessionExiting(UInt64)
    OpenXRFeature.OnSessionLossPending(UInt64)
    OpenXRFeature.OnInstanceLossPending(UInt64)
    OpenXRFeature.OnFormFactorChange(Int32)
    OpenXRFeature.OnViewConfigurationTypeChange(Int32)
    OpenXRFeature.OnEnvironmentBlendModeChange(Int32)
    OpenXRFeature.PathToString(UInt64)
    OpenXRFeature.StringToPath(String)
    OpenXRFeature.GetCurrentInteractionProfile(UInt64)
    OpenXRFeature.GetCurrentInteractionProfile(String)
    OpenXRFeature.GetCurrentAppSpace()
    OpenXRFeature.CreateSubsystem<TDescriptor, TSubsystem>(List<TDescriptor>, String)
    OpenXRFeature.StartSubsystem<T>()
    OpenXRFeature.StopSubsystem<T>()
    OpenXRFeature.DestroySubsystem<T>()
    OpenXRFeature.OnEnable()
    OpenXRFeature.OnDisable()
    OpenXRFeature.GetAction(InputAction)
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    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, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.OpenXR.Features.ConformanceAutomation
    Syntax
    public class ConformanceAutomationFeature : OpenXRFeature

    Fields

    featureId

    The feature id string. This is used to give the feature a well known id for reference.

    Declaration
    public const string featureId = "com.unity.openxr.feature.conformance"
    Field Value
    Type Description
    String

    Methods

    ConformanceAutomationSetActive(String, String, Boolean)

    Drive the xrSetInputDeviceActiveEXT function of the XR_EXT_conformance_automation. See https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_conformance_automation

    Declaration
    public static bool ConformanceAutomationSetActive(string interactionProfile, string topLevelPath, bool isActive)
    Parameters
    Type Name Description
    String interactionProfile

    An OpenXRPath that specifies the OpenXR Interaction Profile of the value to be changed (e.g. /interaction_profiles/khr/simple_controller).

    String topLevelPath

    An OpenXRPath that specifies the OpenXR User Path of the value to be changed (e.g. /user/hand/left).

    Boolean isActive

    A boolean that specifies the desired state of the target.

    Returns
    Type Description
    Boolean

    Returns true if the state is set successfully, or false if there was an error.

    ConformanceAutomationSetBool(String, String, Boolean)

    Drive the xrSetInputDeviceStateBoolEXT function of the XR_EXT_conformance_automation. See https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_conformance_automation

    Declaration
    public static bool ConformanceAutomationSetBool(string topLevelPath, string inputSourcePath, bool state)
    Parameters
    Type Name Description
    String topLevelPath

    An OpenXRPath that specifies the OpenXR User Path of the value to be changed (e.g. /user/hand/left).

    String inputSourcePath

    An OpenXRPath that specifies the full path of the input component whose state you wish to set (e.g. /user/hand/left/input/select/click).

    Boolean state

    A boolean that specifies the desired state of the target.

    Returns
    Type Description
    Boolean

    Returns true if the state is set successfully, or false if there was an error.

    ConformanceAutomationSetFloat(String, String, Single)

    Drive the xrSetInputDeviceStateFloatEXT function of the XR_EXT_conformance_automation. See https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_conformance_automation

    Declaration
    public static bool ConformanceAutomationSetFloat(string topLevelPath, string inputSourcePath, float state)
    Parameters
    Type Name Description
    String topLevelPath

    An OpenXRPath that specifies the OpenXR User Path of the value to be changed (e.g. /user/hand/left).

    String inputSourcePath

    An OpenXRPath that specifies the full path of the input component whose state you wish to set (e.g. /user/hand/left/input/select/click).

    Single state

    A float that specifies the desired state of the target.

    Returns
    Type Description
    Boolean

    Returns true if the state is set successfully, or false if there was an error.

    ConformanceAutomationSetPose(String, String, Vector3, Quaternion)

    Drive the xrSetInputDeviceLocationEXT function of the XR_EXT_conformance_automation. See https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_conformance_automation

    Declaration
    public static bool ConformanceAutomationSetPose(string topLevelPath, string inputSourcePath, Vector3 position, Quaternion orientation)
    Parameters
    Type Name Description
    String topLevelPath

    An OpenXRPath that specifies the OpenXR User Path of the value to be changed (e.g. /user/hand/left).

    String inputSourcePath

    An OpenXRPath that specifies the full path of the input component whose state you wish to set (e.g. /user/hand/left/input/select/click).

    Vector3 position

    A Vector3 that specifies the desired state of the target.

    Quaternion orientation

    A Quaternion that specifies the desired state of the target.

    Returns
    Type Description
    Boolean

    Returns true if the state is set successfully, or false if there was an error.

    ConformanceAutomationSetVec2(String, String, Vector2)

    Drive the xrSetInputDeviceStateVector2fEXT function of the XR_EXT_conformance_automation. See https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_EXT_conformance_automation

    Declaration
    public static bool ConformanceAutomationSetVec2(string topLevelPath, string inputSourcePath, Vector2 state)
    Parameters
    Type Name Description
    String topLevelPath

    An OpenXRPath that specifies the OpenXR User Path of the value to be changed (e.g. /user/hand/left).

    String inputSourcePath

    An OpenXRPath that specifies the full path of the input component whose state you wish to set (e.g. /user/hand/left/input/select/click).

    Vector2 state

    A Vector2 that specifies the desired state of the target.

    Returns
    Type Description
    Boolean

    Returns true if the state is set successfully, or false if there was an error.

    OnInstanceCreate(UInt64)

    Called when xrInstance is created.

    Declaration
    protected override bool OnInstanceCreate(ulong instance)
    Parameters
    Type Name Description
    UInt64 instance
    Returns
    Type Description
    Boolean
    Overrides
    OpenXRFeature.OnInstanceCreate(UInt64)

    OnInstanceDestroy(UInt64)

    Called before xrDestroyInstance

    Declaration
    protected override void OnInstanceDestroy(ulong xrInstance)
    Parameters
    Type Name Description
    UInt64 xrInstance

    Handle of the xrInstance

    Overrides
    OpenXRFeature.OnInstanceDestroy(UInt64)

    OnSessionCreate(UInt64)

    Called when xrSession is created.

    Declaration
    protected override void OnSessionCreate(ulong xrSessionId)
    Parameters
    Type Name Description
    UInt64 xrSessionId
    Overrides
    OpenXRFeature.OnSessionCreate(UInt64)

    OnSessionDestroy(UInt64)

    Called before xrDestroySession.

    Declaration
    protected override void OnSessionDestroy(ulong xrSessionId)
    Parameters
    Type Name Description
    UInt64 xrSessionId
    Overrides
    OpenXRFeature.OnSessionDestroy(UInt64)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023