Class ARSessionFeature
Enables AR Foundation session support via OpenXR for Meta Quest devices.
Inherited Members
OpenXRFeature.enabled
OpenXRFeature.xrGetInstanceProcAddr
OpenXRFeature.OnSubsystemStart()
OpenXRFeature.OnSubsystemStop()
OpenXRFeature.OnEnvironmentBlendModeChange(XrEnvironmentBlendMode)
OpenXRFeature.GetCurrentAppSpace()
OpenXRFeature.SetEnvironmentBlendMode(XrEnvironmentBlendMode)
OpenXRFeature.GetEnvironmentBlendMode()
OpenXRFeature.StartSubsystem<T>()
OpenXRFeature.StopSubsystem<T>()
OpenXRFeature.DestroySubsystem<T>()
OpenXRFeature.OnEnable()
OpenXRFeature.OnDisable()
OpenXRFeature.Awake()
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.OpenXR.Features.Meta
Assembly: Unity.XR.MetaOpenXR.dll
Syntax
public class ARSessionFeature : MetaOpenXRFeature
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.arfoundation-meta-session"
Field Value
Type | Description |
---|---|
string |
Methods
OnSessionStateChange(int, int)
Called when the OpenXR loader receives the XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED
event
from the runtime signaling that the XrSessionState has changed.
Declaration
protected override void OnSessionStateChange(int oldState, int newState)
Parameters
Type | Name | Description |
---|---|---|
int | oldState | Previous state |
int | newState | New state |
Overrides
OnSubsystemCreate()
Instantiates Meta OpenXR Session subsystem instance, but does not start it. (Start/Stop is typically handled by AR Foundation managers.)
Declaration
protected override void OnSubsystemCreate()
Overrides
UnityEngine.XR.OpenXR.Features.OpenXRFeature.OnSubsystemCreate()
OnSubsystemDestroy()
Destroys the session subsystem.
Declaration
protected override void OnSubsystemDestroy()
Overrides
UnityEngine.XR.OpenXR.Features.OpenXRFeature.OnSubsystemDestroy()