API reference
API reference
Select your platform
No SDKs available
No versions available

OVRMetricsScene Class

Modifiers: final
Pre-built metrics group for scene performance monitoring via the OVR Metrics overlay. Accepts a lambda that provides access to the Scene instance, then offers fluent methods (entityCount(), systemExecutionTime()) to register scene-level metrics. Add to OVRMetricsFeature for automatic dashboard integration.

Signature

class OVRMetricsScene(val getScene: () -> Scene?, init: OVRMetricsScene.() -> Unit = {}) : OVRMetricsGroup

Constructors

OVRMetricsScene ( getScene , init )
Signature
constructor(getScene: () -> Scene?, init: OVRMetricsScene.() -> Unit = {})
Parameters
getScene: Function0
init: Function1

Properties

getScene : Function0
[Get]
Signature
val getScene: () -> Scene?
groupName : String
[Get]
Signature
val groupName: String
metrics : mutableListOf<OVRMetric>()
[Get]
Signature
val metrics: mutableListOf<OVRMetric>()
overlayMessages : mutableListOf<() -> String>()
[Get]
Signature
val overlayMessages: mutableListOf<() -> String>()

Methods

numberOfObjects ()
Signature
fun numberOfObjects(): OVRMetricsScene
viewOrigin ()
Signature
fun viewOrigin(): OVRMetricsScene
viewRotationX ()
Signature
fun viewRotationX(): OVRMetricsScene