#Is it possible to access a generic system's instance entity?

1 messages · Page 1 of 1 (latest)

fiery nymph
#

I have a registered generic ISystem, I want to use its system instance entity, but if i try to use the state.SystemHandle to store related system components for example, it gives me an error saying the TypeHandle isn't a registered type, however TypeHandle is private so I can't register it. can anyone help?

#

I was initially using a shared singleton entity across all my systems called "root", but i discovered that you can't properly dispose of native containers held by root from within OnStopRunning or OnDestroy of systems that created them. Since OnDestroy is called after all entities are destroyed meaning I can't access it, and OnStopRunning can run at different times

fiery nymph
#

this is the error I get in the console for reference