Entitas icon indicating copy to clipboard operation
Entitas copied to clipboard

How do I fully teardown/shutdown Entitas and getting rid of DebugSystemsBehaviour

Open huhund opened this issue 4 years ago • 0 comments

What would be the correct way of fully removing all Entitas items from the scene? Currently I do like this:

m_systems.TearDown(); m_systems.DeactivateReactiveSystems(); Contexts.sharedInstance.Reset(); m_systems = null;

But e.g. DebugSystemsBehaviour objects are still persistent in the Unity scene. How can I get rid of those. When I init new systems I get duplicate debug objects.

Best, Hu

huhund avatar Nov 11 '19 14:11 huhund