-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
I have a case in my code where I create and entity from a template during OnAdded in an EntitySystem. If you do this the new entity that is create never gets refreshed because it is currently in the middle of refreshing entities and afterwards it will clear the refresh list.
Simple Example
[Artemis.Attributes.ArtemisEntitySystem(ExecutionType = ExecutionType.Synchronous,GameLoopType = GameLoopType.Update, Layer = 1)]
public class SomeSystem : EntitySystem
{
public override void OnAdded(Entity entity)
{
base.OnAdded(entity);
GetEntityWorld().CreateEntityFromTemplate("SomeEnt", null); // this entity never gets refreshed
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels