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
Inherited Members
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 |
|
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
OnInstanceDestroy(UInt64)
Called before xrDestroyInstance
Declaration
protected override void OnInstanceDestroy(ulong xrInstance)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | xrInstance | Handle of the xrInstance |
Overrides
OnSessionCreate(UInt64)
Called when xrSession is created.
Declaration
protected override void OnSessionCreate(ulong xrSessionId)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | xrSessionId |
Overrides
OnSessionDestroy(UInt64)
Called before xrDestroySession.
Declaration
protected override void OnSessionDestroy(ulong xrSessionId)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | xrSessionId |