Class DefaultLayerData
Subclass of LayerData that represents the default base rendered layer for composition layer ordering. This is an implicit layer that Unity will render to the display of the target XR device.
The intention of this layer is to provide a default "invisible" layer to act as the 0th layer which seperates underlay layers from overlay layers.
Inherited Members
Namespace: Unity.XR.CompositionLayers.Layers
Assembly: Unity.XR.CompositionLayers.dll
Syntax
public class DefaultLayerData : LayerData
Constructors
DefaultLayerData()
Declaration
[Preserve]
public DefaultLayerData()
Methods
Validate(CompositionLayer)
Allows a layer data class to validate values from it's associated composition layer.
Declaration
protected override bool Validate(CompositionLayer layer)
Parameters
Type | Name | Description |
---|---|---|
CompositionLayer | layer | Compositon layer to validate against this layer data. |
Returns
Type | Description |
---|---|
bool | True if validation passes, false if validation fails. |