using System; using UnityEngine; using UnityEngine.Rendering; /// /// Setup a specific render pipeline on scene loading. /// [ExecuteAlways] public class SceneRenderPipeline : MonoBehaviour { /// /// Scriptable Render Pipeline Asset to setup on scene load. /// public RenderPipelineAsset renderPipelineAsset; void OnEnable() { GraphicsSettings.renderPipelineAsset = renderPipelineAsset; } void OnValidate() { GraphicsSettings.renderPipelineAsset = renderPipelineAsset; } }