Way to change ISystem OnUpdate to OnFixedUpdate?

Hi, this might be a weird question but is there a way to make the ISystem OnUpdate actually runs in a FixedTime update, or in other words, in an “OnFixedUpdate” or something like that instead of the regular OnUpdate?

Thanks!

by default, systems update in “SimulationSystemGroup” (runs every frame). For fixed update, add a [UpdateInGroup(typeof(FixedStepSimulationSystemGroup))] to your system. This makes the system’s “OnUpdate” get called on fixed updates only

2 Likes

Use FixedStepSimulationSystemGroup, or make your own RateManager & override the RateManager property of the group.

If you’re looking for more of a tick rate based approach per entity -
I’m using tag component and a separate system to trigger the update.

E.g. Update RateManager / VariableRateManager of ComponentSystemGroup without triggering an DoUpdate

1 Like

Thank you both! @SillyConesValley @VergilUa This helped me a lot and worked for me!

1 Like