Entitas
Entitas copied to clipboard
Releasing a retained entity causes bugs
Hi,
I have found a bug Steps to reproduce:
- Create an entity in a game context.
- In Playmode, select this entity
- Navigate to "Retained by" and press "release" expected behaviour: entity is unparented from game context current behaviour: entity is still parented, game context still shows like it has 1 entity We got an exception: '''EntityIsNotDestroyedException: Cannot release Entity_0(HealthComponent)! Entity is not destroyed yet!'''
- Navigate to Game context gameobject and press Destroy all entities We got one more exception: '''EntityIsNotRetainedByOwnerException: 'Game' cannot release Entity_0()! Entity is not retained by this object! An entity can only be released from objects that retain it.'''
Cheers