Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Obi7Beta | Fluid can not work with paused game and UI
#2
(06-05-2024, 06:12 PM)spikebor Wrote: Hi, happy to have my first bug report for Obi 7 Gran sonrisa . The problem:
In my UI code, when menu opened, game is paused by setting
Code:
                Time.timeScale = Mathf.Epsilon;

Game is paused, but my UI can still work, for example I can move the focus.
This UI document can work with any scene, but when I open a Fluid scene (sample: ComputeFluids), when play the game and open UI menu, the whole UI is frozen, can't click any button, can't move focus.

Hi!

I'm unable to reproduce this: setting Time.timeScale = epsilon (or zero) pauses the simulation, but allows all other systems to continue working (as long as they're not dependent on timescale of course!) This includes UI, just tested it with some uGUI buttons/toggles.

Furthermore, Obi doesn't perform any kind of UI system/event modifications so UI should just work as normal, should be impossible for UI behavior to change as a result of simulation.

(06-05-2024, 06:12 PM)spikebor Wrote: Also, I suggest for a feature to pause ObiSolver from updating. Currently I can only disable ObiSolver when I do not want it to update, but by doing so, for example the Fluid, it will disappear. If the Fluid stop updating but still render, it can be neat for a stop time gameplay feature.

There already exists such a feature: set the solver's MaxStepsPerFrame to zero. No physics steps will be performed, but rendering will still take place.

kind regards,
Reply


Messages In This Thread
RE: Obi7Beta | Fluid can not work with paused game and UI - by josemendez - 06-05-2024, 06:25 PM