Class AndroidXRPerformanceMetrics
Enables access to Android XR performance metrics.
Inheritance
AndroidXRPerformanceMetrics
Inherited Members
Object.MemberwiseClone()
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)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.OpenXR.Features.Android
Assembly: Unity.XR.AndroidOpenXR.dll
Syntax
[OpenXRFeature(UiName = "Android XR: Performance Metrics", BuildTargetGroups = new BuildTargetGroup[] { BuildTargetGroup.Android, BuildTargetGroup.Standalone }, Company = "Unity Technologies", Desc = "Access to Android XR performance metrics.", DocumentationLink = "https://docs.unity3d.com/Packages/com.unity.xr.androidxr-openxr@7.0/manual/features/performance-metrics.html", OpenxrExtensionStrings = "XR_ANDROID_performance_metrics", Category = "Feature", FeatureId = "com.unity.openxr.feature.androidxr-performance-metrics", Version = "0.1.0")]
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 |