Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    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:
    147
    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!