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
The ComponentAdded event is not always raised when I would expect it to when creating a new entity with components:
// Raises event:vare= world.Create<MyComponent>();refvarcomp=ref e.Get<MyComponent>();
comp.Data =1234;// Does not raise event:vare2= world.Create(archetype);// archetype includes MyComponentrefvarcomp2=ref e2.Get<MyComponent>();
comp2.Data =1234;
Additionally, I would also expect world.Destroy(entity) to raise the ComponentRemoved event for all components on that entity, although I can see why this might not be intended.
The text was updated successfully, but these errors were encountered:
The
ComponentAdded
event is not always raised when I would expect it to when creating a new entity with components:Additionally, I would also expect
world.Destroy(entity)
to raise theComponentRemoved
event for all components on that entity, although I can see why this might not be intended.The text was updated successfully, but these errors were encountered: