FakeXrExtensions.FakeConfig


class FakeXrExtensions.FakeConfig


Fake implementation of Extensions Config.

Summary

Constants

const Float

Public constructors

Public functions

Float

Returns the default pixelsPerMeter value for 2D surfaces.

Constants

DEFAULT_PIXELS_PER_METER

Added in 1.0.0-alpha01
const val DEFAULT_PIXELS_PER_METER = 1.0f: Float

Public constructors

FakeConfig

Added in 1.0.0-alpha01
FakeConfig()

Public functions

defaultPixelsPerMeter

Added in 1.0.0-alpha01
fun defaultPixelsPerMeter(density: Float): Float

Returns the default pixelsPerMeter value for 2D surfaces. See NodeTransaction.setPixelResolution() for the meaning of pixelsPerMeter.

Parameters
density: Float

The logical density of the display.

Returns
Float

The default pixelsPerMeter value.