Class XRLayout
Used by render pipelines to store information about the XR device layout.
Inherited Members
Namespace: UnityEngine.Experimental.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public class XRLayout
Methods
AddCamera(Camera, bool)
Configure the layout to render from the specified camera by generating passes from the the connected XR device.
Declaration
public void AddCamera(Camera camera, bool enableXR)
Parameters
Type | Name | Description |
---|---|---|
Camera | camera | |
bool | enableXR |
GetActivePasses()
Used by render pipelines to access all registered passes on this layout.
Declaration
public List<(Camera, XRPass)> GetActivePasses()
Returns
Type | Description |
---|---|
List<(Camera, XRPass)> |
ReconfigurePass(XRPass, Camera)
Used by render pipelines to reconfigure a pass from a camera.
Declaration
public void ReconfigurePass(XRPass xrPass, Camera camera)
Parameters
Type | Name | Description |
---|---|---|
XRPass | xrPass | |
Camera | camera |