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?
Hide particle system when pause menu is not active
-
- Posts: 30
- Joined: 02 Feb 2021 19:11
-
- support
- Posts: 275
- Joined: 01 Aug 2020 08:25
Re: Hide particle system when pause menu is not active
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:
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
-
- Posts: 30
- Joined: 02 Feb 2021 19:11
Re: Hide particle system when pause menu is not active
Thank you, it worked