Class UniversalRendererResources
A resource container for resource used for Universal
Inherited Members
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
clusterDeferred
Cluster Deferred shader.
Declaration
public Shader clusterDeferred { get; set; }
Property Value
Type | Description |
---|---|
Shader |
See Also
copyDepthPS
Shader used to copy the depth buffer.
Declaration
public Shader copyDepthPS { get; set; }
Property Value
Type | Description |
---|---|
Shader |
See Also
decalDBufferClear
Shader used to clear the Decal DBuffer.
Declaration
public Shader decalDBufferClear { get; set; }
Property Value
Type | Description |
---|---|
Shader |
See Also
stencilDeferredPS
Shader used to write stencil operations in deferred mode.
Declaration
public Shader stencilDeferredPS { get; set; }
Property Value
Type | Description |
---|---|
Shader |
See Also
stencilDitherMaskSeedPS
Shader used to write stencils for the dither mask.
Declaration
public Shader stencilDitherMaskSeedPS { get; set; }
Property Value
Type | Description |
---|---|
Shader |
See Also
version
Current version of the resource container. Used only for upgrading a project.
Declaration
public int version { get; }
Property Value
Type | Description |
---|---|
int |