Search Unity

Question How to correctly dispose a world?

Discussion in 'Entity Component System' started by Cell-i-Zenit, Jul 9, 2020.

  1. Cell-i-Zenit

    Cell-i-Zenit

    Joined:
    Mar 11, 2016
    Posts:
    290
    Hi,

    so lets say we have 10 systems in a world, 1 System needs a blobassetstore for conversion, 9 jobs are running most of the time.

    So how would i do a destruction of such a world? I tried to call dispose on the world, but i get errors where it appears that the entitymanager is still in use...

    Should i dispose the blobassetstore first, then the world? Other way around? Anything i need to keep in mind here?