Class UniversalRendererData
Class containing resources needed for the UniversalRenderer
.
Implements
Inherited Members
Namespace: UnityEngine .Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
[Serializable]
[ExcludeFromPreset]
public class UniversalRendererData : ScriptableRendererData, ISerializationCallbackReceiver
Fields
postProcessData
Resources needed for Post Processing.
Declaration
public PostProcessData postProcessData
Field Value
Type | Description |
---|---|
Post |
shaders
Shader resources used in URP.
Declaration
public UniversalRendererData.ShaderResources shaders
Field Value
Type | Description |
---|---|
Universal |
xrSystemData
Shader resources needed in URP for XR.
Declaration
[Reload("Runtime/Data/XRSystemData.asset", ReloadAttribute.Package.Root)]
public XRSystemData xrSystemData
Field Value
Type | Description |
---|---|
XRSystem |
Properties
accurateGbufferNormals
Use Octahedron normal vector encoding for gbuffer normals. The overhead is negligible from desktop GPUs, while it should be avoided for mobile GPUs.
Declaration
public bool accurateGbufferNormals { get; set; }
Property Value
Type | Description |
---|---|
bool |
copyDepthMode
Copy depth mode.
Declaration
public CopyDepthMode copyDepthMode { get; set; }
Property Value
Type | Description |
---|---|
Copy |
defaultStencilState
The default stencil state settings.
Declaration
public StencilStateData defaultStencilState { get; set; }
Property Value
Type | Description |
---|---|
Stencil |
depthPrimingMode
Depth priming mode.
Declaration
public DepthPrimingMode depthPrimingMode { get; set; }
Property Value
Type | Description |
---|---|
Depth |
intermediateTextureMode
Controls when URP renders via an intermediate texture.
Declaration
public IntermediateTextureMode intermediateTextureMode { get; set; }
Property Value
Type | Description |
---|---|
Intermediate |
opaqueLayerMask
Use this to configure how to filter opaque objects.
Declaration
public LayerMask opaqueLayerMask { get; set; }
Property Value
Type | Description |
---|---|
Layer |
renderingMode
Rendering mode.
Declaration
public RenderingMode renderingMode { get; set; }
Property Value
Type | Description |
---|---|
Rendering |
shadowTransparentReceive
True if transparent objects receive shadows.
Declaration
public bool shadowTransparentReceive { get; set; }
Property Value
Type | Description |
---|---|
bool |
transparentLayerMask
Use this to configure how to filter transparent objects.
Declaration
public LayerMask transparentLayerMask { get; set; }
Property Value
Type | Description |
---|---|
Layer |
Methods
Create()
Creates the instance of the ScriptableRenderer.
Declaration
protected override ScriptableRenderer Create()
Returns
Type | Description |
---|---|
Scriptable |
The instance of ScriptableRenderer |
Overrides
OnEnable()
This function is called when the object becomes enabled and active.
Declaration
protected override void OnEnable()