Interface OpenXRLayerProvider.ILayerHandler
An interface used by the Open
Namespace: UnityEngine .XR.OpenXR .CompositionLayers
Assembly: Unity.XR.OpenXR.dll
Syntax
public interface OpenXRLayerProvider.ILayerHandler
Remarks
ILayerHandler
instances must register themselves via
Register
The Open
Methods
CreateLayer(LayerInfo)
Called by the OpenILayerHandler
instance has been created.
Declaration
void CreateLayer(CompositionLayerManager.LayerInfo layerInfo)
Parameters
Type | Name | Description |
---|---|---|
Layer |
layerInfo | Container for the instance id and CompositionLayer component of the composition layer that was just created. |
ModifyLayer(LayerInfo)
Called by the Open
Declaration
void ModifyLayer(CompositionLayerManager.LayerInfo layerInfo)
Parameters
Type | Name | Description |
---|---|---|
Layer |
layerInfo | Container for the instance id and CompositionLayer component of the composition layer that was modified. |
OnUpdate()
Called by the OpenendFrameInfo
struct inside the UnityOpenXR lib.
Declaration
void OnUpdate()
RemoveLayer(int)
Called by the OpenILayerHandler
instance has been destroyed or disabled.
Declaration
void RemoveLayer(int id)
Parameters
Type | Name | Description |
---|---|---|
int | id |
SetActiveLayer(LayerInfo)
Called every frame by the OpenILayerHandler
instance.
Declaration
void SetActiveLayer(CompositionLayerManager.LayerInfo layerInfo)
Parameters
Type | Name | Description |
---|---|---|
Layer |
layerInfo | Container for the instance id and CompositionLayer component of the composition layer being set to active. |