Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Is there anyway to remove my custom renderpass at runtime?

Discussion in 'Graphics Experimental Previews' started by fscrazy, Jul 30, 2019.

  1. fscrazy

    fscrazy

    Joined:
    Nov 28, 2014
    Posts:
    4
    when I use

    ScriptableRenderer.AddRenderPasses or ScriptableRenderer.EnqueuePass

    I can add my custom renderpass to the render pipeline.

    how can I remove my customrenderpass at runtime.

    some renderfeature i just want use it once. I want dynamic control it active or disable.

    Can I do it ? Or I just can't control it.
     
  2. liiir1985

    liiir1985

    Joined:
    Jul 30, 2014
    Posts:
    142
    I think you can make it to a singleton and then set a flag on it to indicate if it should enqueue the pass
     
  3. fscrazy

    fscrazy

    Joined:
    Nov 28, 2014
    Posts:
    4
    Oh I konw it .
    Thank you!
     
unityunity