Hi everyone, I am trying to change all of the TimeManager settings from script based on different situations in our project. I have a script in the scene that controls these settings, and it runs the following code in it’s start function:
Time.fixedDeltaTime = 1.0f/(float)PhysicsFrameRate;
Time.maximumDeltaTime = Time.fixedDeltaTime * 2.0f;
Application.targetFrameRate = TargetFrameRate;
With the PhysicsFrameRate set to 120, I can see in the editor that the Fixed Timestep updates (0.008333334, but the Maximum Allowed Timestep does not update, and it does not match the 2x fixed timestep (it still shows 0.3333333). I have a script running that does some heavy processing in FixedUpdate, and we can see a big difference in the simulation’s behavior when setting this value in code versus setting it in the time manager settings. Any ideas?