Unity 2.0 and handling IDisposable types (especially with PerThreadLifetimeManager)

前端 未结 4 919
无人共我
无人共我 2020-12-02 16:50

I know that similar question was asked several times (for example: here, here,here and here) but it was for previous versions of Unity where the answer was dependent on used

4条回答
  •  独厮守ぢ
    2020-12-02 17:33

    There are only a few circumstances where Unity will dispose an instance. It is really unsupported. My solution was a custom extension to achieve this - http://www.neovolve.com/2010/06/18/unity-extension-for-disposing-build-trees-on-teardown/

提交回复
热议问题