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

LayerConfig

LayerConfig

open class LayerConfig(var alphaBlend: LayerAlphaBlend? = null, var colorScaleBias: LayerColorScaleBias? = null, var zIndex: Int = 0, var secure: Boolean = false, var filters: Int = 0)
Configuration options for rendering layers. Setting this in PanelConfig will enable Layers.
Layers are used to render Panels with higher fidelity. More information can be found here: https://developers.meta.com/horizon/documentation/spatial-sdk/spatial-sdk-2dpanel-layers

Constructors

NameSummary
LayerConfig
constructor(alphaBlend: LayerAlphaBlend? = null, colorScaleBias: LayerColorScaleBias? = null, zIndex: Int = 0, secure: Boolean = false, filters: Int = 0)

Properties

NameSummary
alphaBlend
var alphaBlend: LayerAlphaBlend?

Configuration for alpha blending, or null to use default blending
colorScaleBias
var colorScaleBias: LayerColorScaleBias?

Color adjustment settings, or null to use default colors
filters
var filters: Int
secure
var secure: Boolean

Whether the layer should be rendered securely to enable DRM.
var zIndex: Int

Integer value controlling the rendering order (higher values render on top). Layers of the same z-index are rendered based on the distance of entity origin from head pose.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon