Class ScriptableRendererData
Class ScriptableRendererData
contains resources for a ScriptableRenderer
.
ScriptableRenderer
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Rendering.Universal
Syntax
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 |
Properties
rendererFeatures
List of additional render pass features for this renderer.
Declaration
public List<ScriptableRendererFeature> rendererFeatures { get; }
Property Value
Type | Description |
---|---|
List<ScriptableRendererFeature> |
useNativeRenderPass
Declaration
public bool useNativeRenderPass { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Create()
Creates the instance of the ScriptableRenderer.
Declaration
protected abstract ScriptableRenderer Create()
Returns
Type | Description |
---|---|
ScriptableRenderer | The instance of ScriptableRenderer |
OnEnable()
Declaration
protected virtual void OnEnable()
OnValidate()
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()