Class UniversalRendererData
Class containing resources needed for the UniversalRenderer
.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Rendering.Universal
Syntax
[Serializable]
[ReloadGroup]
[ExcludeFromPreset]
public class UniversalRendererData : ScriptableRendererData, ISerializationCallbackReceiver
Fields
postProcessData
Resources needed for Post Processing.
Declaration
public PostProcessData postProcessData
Field Value
Type | Description |
---|---|
PostProcessData |
shaders
Shader resources used in URP.
Declaration
public UniversalRendererData.ShaderResources shaders
Field Value
Type | Description |
---|---|
UniversalRendererData.ShaderResources |
Properties
accurateGbufferNormals
Use Octaedron 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 |
---|---|
Boolean |
copyDepthMode
Copy depth mode.
Declaration
public CopyDepthMode copyDepthMode { get; set; }
Property Value
Type | Description |
---|---|
CopyDepthMode |
defaultStencilState
Declaration
public StencilStateData defaultStencilState { get; set; }
Property Value
Type | Description |
---|---|
StencilStateData |
depthPrimingMode
Depth priming mode.
Declaration
public DepthPrimingMode depthPrimingMode { get; set; }
Property Value
Type | Description |
---|---|
DepthPrimingMode |
intermediateTextureMode
Controls when URP renders via an intermediate texture.
Declaration
public IntermediateTextureMode intermediateTextureMode { get; set; }
Property Value
Type | Description |
---|---|
IntermediateTextureMode |
opaqueLayerMask
Use this to configure how to filter opaque objects.
Declaration
public LayerMask opaqueLayerMask { get; set; }
Property Value
Type | Description |
---|---|
LayerMask |
renderingMode
Rendering mode.
Declaration
public RenderingMode renderingMode { get; set; }
Property Value
Type | Description |
---|---|
RenderingMode |
shadowTransparentReceive
True if transparent objects receive shadows.
Declaration
public bool shadowTransparentReceive { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
transparentLayerMask
Use this to configure how to filter transparent objects.
Declaration
public LayerMask transparentLayerMask { get; set; }
Property Value
Type | Description |
---|---|
LayerMask |
Methods
Create()
Declaration
protected override ScriptableRenderer Create()
Returns
Type | Description |
---|---|
ScriptableRenderer |
Overrides
OnEnable()
Declaration
protected override void OnEnable()
Overrides
OnValidate()
Declaration
protected override void OnValidate()
Overrides
Explicit Interface Implementations
ISerializationCallbackReceiver.OnAfterDeserialize()
Declaration
void ISerializationCallbackReceiver.OnAfterDeserialize()
Implements
ISerializationCallbackReceiver.OnBeforeSerialize()
Declaration
void ISerializationCallbackReceiver.OnBeforeSerialize()