Greetings, I ran into such a problem, so when I unload the current scene using SceneManager.UnloadAsync(NameScene); All the objects that I converted to Entity still remain, how do I remove them?
Wrong forum, the DOTS forum is here. I’ll move your post.
Entities do not live in a scene, they live in a World.
Unloading a scene does not destroy the World.
If you want to destroy those entities you can destroy the world with
World.DefaultGameObjectInjectionWorld.Dispose();
1 Like