Stride Forums Archive

Game freezes when I remove child entity

1 posts, 869 views, 2016-09-17 to 2016-09-17

GayPornStudio (Vasilii Filippov) 2016-09-17 #1

I use the following code and my game freezes after end of that update:

if (Entity.GetParent() != null)
{
    Entity.GetParent()
        .RemoveChild(Entity);
}