Class ScriptableRendererData
Class ScriptableRendererData
contains resources for a ScriptableRenderer
.
ScriptableRenderer
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
[Icon("UnityEngine/Rendering/RenderPipelineAsset Icon")]
public abstract class ScriptableRendererData : ScriptableObject
Fields
debugShaders
Container for shader resources used by Rendering Debugger.
Declaration
public ScriptableRendererData.DebugShaderResources debugShaders
Field Value
Type | Description |
---|---|
ScriptableRendererData.DebugShaderResources |
probeVolumeResources
Probe volume resources used by URP
Declaration
public ScriptableRendererData.ProbeVolumeResources probeVolumeResources
Field Value
Type | Description |
---|---|
ScriptableRendererData.ProbeVolumeResources |
Properties
rendererFeatures
List of additional render pass features for this renderer.
Declaration
public List<ScriptableRendererFeature> rendererFeatures { get; }
Property Value
Type | Description |
---|---|
List<ScriptableRendererFeature> |
useNativeRenderPass
Specifies whether the renderer should use Native Render Pass.
Declaration
public bool useNativeRenderPass { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
Create()
Creates the instance of the ScriptableRenderer.
Declaration
protected abstract ScriptableRenderer Create()
Returns
Type | Description |
---|---|
ScriptableRenderer | The instance of ScriptableRenderer |
OnEnable()
This function is called when the object becomes enabled and active.
Declaration
protected virtual void OnEnable()
OnValidate()
Editor-only function that Unity calls when the script is loaded or a value changes in the Inspector.
Declaration
protected virtual void OnValidate()
SetDirty()
Use SetDirty when changing seeings in the ScriptableRendererData. It will rebuild the render passes with the new data.
Declaration
public void SetDirty()
TryGetRendererFeature<T>(out T)
Returns true if contains renderer feature with specified type.
Declaration
public bool TryGetRendererFeature<T>(out T rendererFeature) where T : ScriptableRendererFeature
Parameters
Type | Name | Description |
---|---|---|
T | rendererFeature | RenderFeature output parameter. |
Returns
Type | Description |
---|---|
bool |
Type Parameters
Name | Description |
---|---|
T | Renderer Feature type. |