Unloading / Destroying / Stopping Entities Systems Pools
See original GitHub issueImagine an app that has a lobby or menu scene and a game scene, the game scene uses Entitas but the lobby does not (and let’s say cannot).
I need to the systems to re-Initialize every time the game scene loads (every time the player goes into the game scene.
What is the ‘correct’ way to do this?
Should just call Pool.pool.DestroyAll and also destroy all the systems by looping over them? or is there a more elegant way of winding things down?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Unloading and Reloading Assets - Help & Support
Hey guys We are currently starting to work on a new project, which will feature a lot of levels and a lot of...
Read more >Battle of the Bulge
The answer is hydrostatic pressure. If it can destroy pools constructed of rigid materials, then vinyl liners do not stand much of a...
Read more >Diatomaceous Earth Pool Filters: Don't wash them in the ...
Rinse pool filters and diatomaceous earth filters in landscaped areas where water and debris can readily soak into the soil. • When draining ......
Read more >The managed thread pool
A System.AppDomainUnloadedException is thrown in a thread pool thread because the application domain is being unloaded. The common language ...
Read more >Title: Section 6-1.11 - Treatment | New York Codes, Rules and ...
All swimming pools shall be equipped with a recirculation system which includes ... water must discharge to the sewer system through a separation...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ll try to answer soon. In the meantime you can read #82, maybe this contains valuable info already.
I solved this “restart” problem by:
pool.DestroyAllEntities(); pool.ResetCreationIndex(); systems.TearDown();followed at an appropriate location by
systems.Initialize(); //...