Run stuff on system but ALSO do a Entities.ForEach

I have this one big system that do a whole lot of stuff, and I needed to add a Entities.ForEach to it. Now the whole system will only ever run when Entities.ForEach have something to work on. How can I make the system runs every frame regardless of having or not something to process on Entities.ForEach?

I will not split in two systems unless it’s the absolute only way to do it. I like the way I have total control over when/if I call JobHandle.Complete for my Entities.ForEach as it currently is.

Use the AlwaysUpdateSystem attribute.

    [AlwaysUpdateSystem]
    public class SystemName : ComponentSystem { ... }
1 Like

Worked like a charm.