docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UniversalRendererResources

    A resource container for resource used for UniversalRenderPipeline.

    Inheritance
    object
    UniversalRendererResources
    Implements
    IRenderPipelineResources
    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 = "R: Universal Renderer Shaders", Order = 1000)]
    [HideInInspector]
    public class UniversalRendererResources : IRenderPipelineResources, IRenderPipelineGraphicsSettings
    Remarks

    You cannot edit these resources through the editor's UI; use the API for advanced changes. Changing this through the API is only allowed in the Editor. In the Player, this raises an error.

    Examples

    Here is an example of how to get the MotionVector shader used by URP's Universal Renderer.

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

    public static class URPUniversalRendererResourcesHelper { public static Shader motionVector { get { var gs = GraphicsSettings.GetRenderPipelineSettings<UniversalRendererResources>(); if (gs == null) //not in URP or not with UniversalRenderer return null; return gs.cameraMotionVector; } } }

    Properties

    cameraMotionVector

    Shader used to compute Motion Vectors from the Camera.

    Declaration
    public Shader cameraMotionVector { get; set; }
    Property Value
    Type Description
    Shader
    See Also
    IRenderPipelineResources

    clusterDeferred

    Cluster Deferred shader.

    Declaration
    public Shader clusterDeferred { get; set; }
    Property Value
    Type Description
    Shader
    See Also
    IRenderPipelineResources

    copyDepthPS

    Shader used to copy the depth buffer.

    Declaration
    public Shader copyDepthPS { get; set; }
    Property Value
    Type Description
    Shader
    See Also
    IRenderPipelineResources

    decalDBufferClear

    Shader used to clear the Decal DBuffer.

    Declaration
    public Shader decalDBufferClear { get; set; }
    Property Value
    Type Description
    Shader
    See Also
    IRenderPipelineResources

    stencilDeferredPS

    Shader used to write stencil operations in deferred mode.

    Declaration
    public Shader stencilDeferredPS { get; set; }
    Property Value
    Type Description
    Shader
    See Also
    IRenderPipelineResources

    stencilDitherMaskSeedPS

    Shader used to write stencils for the dither mask.

    Declaration
    public Shader stencilDitherMaskSeedPS { get; set; }
    Property Value
    Type Description
    Shader
    See Also
    IRenderPipelineResources

    version

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

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

    Implements

    IRenderPipelineResources
    IRenderPipelineGraphicsSettings

    See Also

    IRenderPipelineResources
    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)