I used to do this?
New way?
Thanks!
stepPhysicsWorld = World.GetOrCreateSystem<StepPhysicsWorld>();
stepPhysicsWorld.Enabled = !paused;
I used to do this?
New way?
Thanks!
stepPhysicsWorld = World.GetOrCreateSystem<StepPhysicsWorld>();
stepPhysicsWorld.Enabled = !paused;
Hi, this works for me as per the upgrade guide
var fixedStepSimulationSystemGroup = World.DefaultGameObjectInjectionWorld.GetOrCreateSystemManaged<FixedStepSimulationSystemGroup>();
fixedStepSimulationSystemGroup.Enabled = setTimestepActive;
Can do the same for the SimulationSystemGroup
var simulationSystemGroup = World.DefaultGameObjectInjectionWorld.GetOrCreateSystemManaged<SimulationSystemGroup>();
simulationSystemGroup.Enabled = setTimestepActive;