docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRLayout

    Used by render pipelines to store information about the XR device layout.

    Inheritance
    object
    XRLayout
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    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.

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)