Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

[Core SRP] 2019 RenderPipeline no longer has Dispose() method, any replacement?

Discussion in 'Graphics Experimental Previews' started by bitinn, Nov 29, 2019.

  1. bitinn


    Aug 20, 2016
    So in 2018 LTS, the RenderPipeline has "Dispose" API which we can override to unset things created during ctor call (like new CommandBuffer)

    The 2019 RenderPipeline no longer has it, so is it done for us behind the scene?

    I also use Dispose() to reset some global shader properties that are changed during ctor call, where should I do them now?
  2. ekakiya


    Jul 25, 2011
    The Dispose() needs an argument in 2019 RP.
    protected override void Dispose(bool disposing){}
    bitinn likes this.