Class ScriptableRendererFeature
You can add a ScriptableRendererFeature
to the ScriptableRenderer
. Use this scriptable renderer feature to inject render passes into the renderer.
Namespace: UnityEngine.Rendering.Universal
Syntax
public abstract class ScriptableRendererFeature : ScriptableObject
Methods
AddRenderPasses(ScriptableRenderer, ref RenderingData)
Injects one or multiple ScriptableRenderPass
in the renderer.
Declaration
public abstract void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
Parameters
Type | Name | Description |
---|---|---|
ScriptableRenderer | renderer | |
RenderingData | renderingData | Rendering state. Use this to setup render passes. |
Create()
Initializes this feature's resources. This is called every time serialization happens.
Declaration
public abstract void Create()