ISystemGroup
Marker of a system group: systems marked UpdateInGroupAttribute run together when World.Update is called…
public interface ISystemGroupMarker of a system group: systems marked UpdateInGroupAttribute run together when World.Update is called, independently of the default group run by World.Update. Use groups for different cadences (a fixed-rate simulation tick vs. work that runs whenever input arrives).
public struct NetworkGroup : ISystemGroup;
[UpdateInGroup<NetworkGroup>]
public class ReceiveSystem : EcsSystem { ... }
world.Update<NetworkGroup>(); // whenever packets arrive
world.Update(); // fixed tick: default groupA group may carry WithAttribute, WithoutAttribute and WithAnyAttribute filters: the generator adds them to every [ForEach] method of its systems ([Without<Inactive>] public struct Gameplay : ISystemGroup; keeps inactive entities out of the whole group), and so may the interfaces it implements: IGroupWith, IGroupWithout. Queries a system makes in OnUpdate are its own.
Last updated on
How is this guide?