Class AndroidXRPerformanceMetrics
Enables access to Android XR performance metrics.
Inheritance
OpenXRFeature
AndroidXRPerformanceMetrics
Inherited Members
OpenXRFeature.enabled
OpenXRFeature.xrGetInstanceProcAddr
OpenXRFeature.OnSubsystemCreate()
OpenXRFeature.OnSubsystemStart()
OpenXRFeature.OnSubsystemStop()
OpenXRFeature.OnSubsystemDestroy()
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()
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.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.OpenXR.Features.Android
Assembly: Unity.XR.AndroidOpenXR.dll
Syntax
public class AndroidXRPerformanceMetrics : AndroidXROpenXRFeature
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.androidxr-performance-metrics"
Field Value
Type | Description |
---|---|
string |
Properties
supportedMetricPaths
Get a list of all supported metric paths as reported by the Android XR device.
Declaration
public ReadOnlyList<string> supportedMetricPaths { get; }
Property Value
Type | Description |
---|---|
ReadOnlyList<string> |
Remarks
supportedMetricPaths can be null if AndroidXRPerformanceMetrics failed to initialize.
Methods
OnSessionBegin(ulong)
Starts native StatProvider and attaches it to app update loop.
Declaration
protected override void OnSessionBegin(ulong xrSession)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrSession | Handle of the xrSession |
Overrides
OnSessionCreate(ulong)
Creates and initializes native StatProvider.
Declaration
protected override void OnSessionCreate(ulong xrSession)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrSession | Handle of the xrSession |
Overrides
OnSessionDestroy(ulong)
Destroys the native StatProvider.
Declaration
protected override void OnSessionDestroy(ulong xrSession)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrSession | Handle of the xrSession |
Overrides
OnSessionEnd(ulong)
Stops native StatProvider and detaches it from app update loop.
Declaration
protected override void OnSessionEnd(ulong xrSession)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrSession | Handle of the xrSession |