Namespace Unity.XR.CompositionLayers.Services
Classes
CompositionLayerManager
Singleton manger for defined composition layers and
updating layer information for a given ILayer
The expected lifecycle of a layer in relation to the manager is as follows:
| Composition Layer | Manager | Reported State |
| -- | -- | -- |
| Awake | Composition
The manager will report the set of created, removed, modified and active layers to the
s_Layer
Created : Any layer that has just been created. Populated on calls to Composition
This list is ephemeral and is cleared after each call to the layer provider.
Removed : Any layer that has been destroyed will cause a call to
Composition
This list is ephemeral and is cleared after each call to the layer provider.
Modified : Any layer that has changed in some way be added to this list. A modification could be a property change, or the layer being re-activated or de-activated. A layer is only added to this list if it isn't already in the Created or Removed lists.
This list is ephemeral and is cleared after each call to the layer provider.
A layer will only exist in one of Removed, Created or Modified on any call to the s_Layer
Active : This list contains the current set of active layers for this update call to
the s_Layer
CompositionLayerUtils
Collection of utility methods that are useful for Composition
PlatformManager
For managing active PlatformProvider.
Structs
CompositionLayerManager.LayerInfo
Information about composition layers registered with the manager.