Button animation(scale transition) doesn't work when game is paused

So I’m using director.pause() in order to pause my game’s logic and then show a pause menu and I’m using the “Scale Transition” for my buttons. But now the buttons don’t animate when I interact with them. This is not an issue if I use the “Sprite Transition”.
Is there anyway to get around this issue?
How can I scale the buttons when the game is paused?

image

I’m using Cocos Creator v3.5.0.
Thanks in advance

The director.pause() will pause the update of button, refer to :


You can try to change the director logic here in cocos-engine:

1 Like

Thank you for your response.
I ended up solving this issue by implementing a custom pause and resume method for all of my in-game nodes and avoided calling the director.pause() function all together.

But I really think that UI elements should not be stopped when we call the ‘director.pause()’ function. Hopefully in the future we can at least have the option of not including UI nodes in the pause method.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.