Interface ILayerProvider
Interface that defines the API for an ILayerProvider.
Namespace: Unity.XR.CompositionLayers .Provider
Assembly: Unity.XR.CompositionLayers.dll
Syntax
public interface ILayerProvider
Methods
CleanupState()
Tell the provider to clean up all layer state it maintains.
Declaration
void CleanupState()
LateUpdate()
Called by the Composition
Declaration
void LateUpdate()
SetInitialState(List<LayerInfo>)
Sets the layer provider state on first assignment to the Composition
Declaration
void SetInitialState(List<CompositionLayerManager.LayerInfo> layers)
Parameters
Type | Name | Description |
---|---|---|
List<Composition |
layers | The list of all currently known Composition |
UpdateLayers(List<LayerInfo>, List<int>, List<LayerInfo>, List<LayerInfo>)
Called by the Composition
Declaration
void UpdateLayers(List<CompositionLayerManager.LayerInfo> createdLayers, List<int> removedLayers, List<CompositionLayerManager.LayerInfo> modifiedLayers, List<CompositionLayerManager.LayerInfo> activeLayers)
Parameters
Type | Name | Description |
---|---|---|
List<Composition |
createdLayers | The list of layers that were just created. Any layer in
this list may be in the |
List<int> | removedLayers | The list of layers that are no longer being managed. Any layer in
this list should not be in the |
List<Composition |
modifiedLayers | The list of layers that have been recently modified. Any layer in
this list may also be in the |
List<Composition |
activeLayers | The list of layers currently active within the scene.
Layers in this list may also be in the |