Hide particle system when pause menu is not active

All about user interface, be it customizing built-in UIs or adding new ones.
Post Reply
juan.delcastillo
Posts: 30
Joined: 02 Feb 2021 19:11

Hide particle system when pause menu is not active

Post by juan.delcastillo »

I've created a custom pause menu that has a particle system. When the game starts, almost every pause UI element is hidden, except for the particle system. Is it possible to play the particle system only when the pause menu is on screen?

idaot
support
Posts: 275
Joined: 01 Aug 2020 08:25

Re: Hide particle system when pause menu is not active

Post by idaot »

Consider using the On Show() and On Hide() events of the Custom UI script to play and stop the particle system accordingly. If you need a bit more control then I suggest creating a custom command and access the UI via the IUIManager engine service.

Here's an example of a custom UI with the behaviour I specified above:
Image

More information on Custom Commands: https://naninovel.com/guide/custom-comm ... m-commands
More information on Engine Services: https://naninovel.com/guide/engine-serv ... e-services

juan.delcastillo
Posts: 30
Joined: 02 Feb 2021 19:11

Re: Hide particle system when pause menu is not active

Post by juan.delcastillo »

Thank you, it worked

Post Reply