using UnityEngine.Scripting.APIUpdating; namespace UnityEngine.Rendering.Universal { /// /// You can add a ScriptableRendererFeature to the ScriptableRenderer. Use this scriptable renderer feature to inject render passes into the renderer. /// /// /// [MovedFrom("UnityEngine.Rendering.LWRP")] public abstract class ScriptableRendererFeature : ScriptableObject { /// /// Initializes this feature's resources. This is called every time serialization happens. /// public abstract void Create(); /// /// Injects one or multiple ScriptableRenderPass in the renderer. /// /// List of render passes to add to. /// Rendering state. Use this to setup render passes. public abstract void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData); void OnEnable() { Create(); } void OnValidate() { Create(); } } }