docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RenderGraphSettings

    A graphics settings container for settings related to Render Graph for UniversalRenderPipeline.

    Inheritance
    object
    RenderGraphSettings
    Implements
    IRenderPipelineGraphicsSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.Universal
    Assembly: Unity.RenderPipelines.Universal.Runtime.dll
    Syntax
    [Serializable]
    [SupportedOnRenderPipeline(typeof(UniversalRenderPipelineAsset))]
    [CategoryInfo(Name = "Render Graph", Order = 50)]
    [ElementInfo(Order = -10)]
    public class RenderGraphSettings : IRenderPipelineGraphicsSettings
    Remarks

    To change those settings, go to Editor > Project Settings in the Graphics tab (URP). Changing this through the API is only allowed in the Editor. In the Player, this raises an error.

    Examples

    This example demonstrates how to determine whether your project uses RenderGraph in URP.

    using UnityEngine.Rendering;
    using UnityEngine.Rendering.Universal;
    

    public static class URPRenderGraphHelper { public static bool enabled { get { var gs = GraphicsSettings.GetRenderPipelineSettings<RenderGraphSettings>(); if (gs == null) //not in URP return false; return !gs.enableRenderCompatibilityMode; } } }

    Properties

    enableRenderCompatibilityMode

    When enabled, Universal Rendering Pipeline will not use Render Graph API to construct and execute the frame.

    Declaration
    public bool enableRenderCompatibilityMode { get; set; }
    Property Value
    Type Description
    bool
    See Also
    IRenderPipelineGraphicsSettings

    version

    Current version of the settings container. Used only for upgrading a project.

    Declaration
    public int version { get; }
    Property Value
    Type Description
    int
    See Also
    IRenderPipelineGraphicsSettings

    Implements

    IRenderPipelineGraphicsSettings

    See Also

    IRenderPipelineGraphicsSettings
    In This Article
    Back to top
    Copyright © 2025 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)