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()
Initializes a new instance of the DefaultLayerData class.
Declaration
[Preserve]
public DefaultLayerData()
Methods
Validate(CompositionLayer)
Validates the composition layer to ensure it is set as the default scene layer.
Declaration
protected override bool Validate(CompositionLayer layer)
Parameters
Type | Name | Description |
---|---|---|
CompositionLayer | layer | The composition layer to validate. |
Returns
Type | Description |
---|---|
bool | true if the layer is successfully set as the default scene composition layer. Otherwise, false. |