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
Fields
quadView
State container for Quad View rendering, used to cache data across render passes.
Declaration
public XRLayout.QuadViewState quadView
Field Value
| Type | Description |
|---|---|
| XRLayout.QuadViewState |
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 | Camera that has XR device connected to. |
| bool | enableXR | Determines XR capability of the generated layout. Can be used to force generate non-XR layout. |
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)> | A list of registered camera/XRPass tuples. |
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 | XRPass that needs to be reconfigured. |
| Camera | camera | The camera that XRPass configures against. |