How to check if entity is still alive?

I’m in the situation where a bunch of Monobehaviour script holds an entity each.

These entities can be destroyed at any time by a system.

In another system I’ll collect the entities from my Monobehaviour and want to check if they are still existing, but have not succeeded so far.

Is there any way to do this? Or should I’ll consider an other approach to reference entities from Monobehaviours?

EntityManager.Exists(entity)

5 Likes

Uhm… yeah… I feel dumb now.

2 Likes