Hello @gamingislove I would like to hear your recommendation about the best approach to handle the following scenario
I'm working on the game Pause Screen Mechanics, the issues I've found are: 1) When Pausing the game the Dialogue box doesn't animate or interact at all, make sense since Time Scale is set to 0, but how to achieve it? - I thought about looking into the code and see if I can set Dialogue to use unscaled time time instead, like DOTween does to ignore the Pause Freeze. - Or, not Pausing at all and somehow stopping world movement but UI related. 2) The Dialogue is launched from inside an Event when opening the Pause Screen, if I close the Pause Screen via toggle input key (without choosing anything from the Dialogue), then the Dialogue remains open. So how I could close the Dialogue from outside the event that fires it?
Hm, probably best to handle this via a menu screen (Button List menu part), as this pretty much offers all of that in a convenient package, including pausing the game (even freeze pause, i.e. time scale 0, and still being able to control the dialogue).
You can also use the open/close game events of the menu screen for additional stuff you might want to do, e.g. visual effects.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Unity ORK Framework Series - 24 Treasure Item Collector Part 1
Unity ORK Framework Series - 25 Minimap Part 1
https://youtu.be/7V5b6_m3qPI
I'm working on the game Pause Screen Mechanics, the issues I've found are:
1) When Pausing the game the Dialogue box doesn't animate or interact at all, make sense since Time Scale is set to 0, but how to achieve it?
- I thought about looking into the code and see if I can set Dialogue to use unscaled time time instead, like DOTween does to ignore the Pause Freeze.
- Or, not Pausing at all and somehow stopping world movement but UI related.
2) The Dialogue is launched from inside an Event when opening the Pause Screen, if I close the Pause Screen via toggle input key (without choosing anything from the Dialogue), then the Dialogue remains open. So how I could close the Dialogue from outside the event that fires it?
Thanks in advance for your insight.
You can also use the open/close game events of the menu screen for additional stuff you might want to do, e.g. visual effects.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!