Class UniversalRendererData
Class containing resources needed for the UniversalRenderer.
Inheritance
UnityEngine.Object
UnityEngine.ScriptableObject
UniversalRendererData
Inherited Members
UnityEngine.ScriptableObject.CreateInstance(System.String)
UnityEngine.ScriptableObject.CreateInstance(System.Type)
UnityEngine.ScriptableObject.CreateInstance<T>()
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(System.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfType(System.Type, System.Boolean)
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.FindFirstObjectByType(System.Type)
UnityEngine.Object.FindAnyObjectByType(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type, System.Boolean)
UnityEngine.Object.FindFirstObjectByType(System.Type, UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType(System.Type, UnityEngine.FindObjectsInactive)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
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
The default stencil state settings.
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 |
|---|---|
| UnityEngine.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 |
|---|---|
| UnityEngine.LayerMask |
Methods
Create()
Creates the instance of the ScriptableRenderer.
Declaration
protected override ScriptableRenderer Create()
Returns
| Type | Description |
|---|---|
| ScriptableRenderer | The instance of ScriptableRenderer |
Overrides
OnEnable()
This function is called when the object becomes enabled and active.
Declaration
protected override void OnEnable()
Overrides
Explicit Interface Implementations
ISerializationCallbackReceiver.OnAfterDeserialize()
Declaration
void ISerializationCallbackReceiver.OnAfterDeserialize()
Implements
UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize()
ISerializationCallbackReceiver.OnBeforeSerialize()
Declaration
void ISerializationCallbackReceiver.OnBeforeSerialize()
Implements
UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize()