You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when a new created entity uses a recycled slot/position from a previously destroyed entity, it still has the same parent that the recycled entity did. i dont understand if entities are meant to be removed from their parents before deletion, or if the library should be able to handle this common case.
also, great library thank you!
this is the test code:
[Fact]publicvoidCreateThenDestroyEntityWithParent(){usingWorldworld=new();Entitya=world.CreateEntity();Entityb=world.CreateEntity();a.AddChild(b);intid=b.Id;Entityparent=b.Parent;//a.RemoveChild(b); //<- this fixes itb.DeleteEntity();Entityc=world.CreateEntity();Assert.Equal(id,c.Id);Assert.NotEqual(c.Parent,parent);}
The text was updated successfully, but these errors were encountered:
when a new created entity uses a recycled slot/position from a previously destroyed entity, it still has the same parent that the recycled entity did. i dont understand if entities are meant to be removed from their parents before deletion, or if the library should be able to handle this common case.
also, great library thank you!
this is the test code:
The text was updated successfully, but these errors were encountered: