Hello Everyone.
I am trying to create a in game HUD using the UI Toolkit. I have several custom controls that are animated in code. I use the IVisualElementScheduler to get callbacks at regular time intervals when needed.
But when the player press the pause button and the pause menu is opened I want all the HUD controls to freeze. Is there a way to stop time for all the visual elements in a given hierarchy? Something akin to:
rootVisualElement.timeScale = 0f;
I could implement that logic into my own controls but that would be a lot of work for what I believe is a common use case. Does the UI Toolkit has something like this?
Thank you very much.