Entitas icon indicating copy to clipboard operation
Entitas copied to clipboard

Releasing a retained entity causes bugs

Open subzero911 opened this issue 5 years ago • 0 comments

Hi,

I have found a bug Steps to reproduce:

  1. Create an entity in a game context.
  2. In Playmode, select this entity
  3. 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!'''
  4. 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

subzero911 avatar Apr 09 '19 21:04 subzero911