- Home /
Best way to show multiple UI elements in a "Game Over" animation
Hi, newbie here. I'm making a simple game and would like to show different animations once the level is over, based on what happens. For example: whether the level was cleared or not, whether the player got a new high score or not, grade based on how high the score was, etc. You can imagine there would be different combinations of this (such as showing both a "level cleared" message and a "new high score" message in the same end-of-level animation.
What's the best way to do this? I can create a different animation for each possible combination, but there must be a better way to do this.
Thanks for any help!
Answer by Reaper93 · May 19, 2017 at 01:50 PM
You can either have one game object containing all of them in a disabled state and enable separate elements dependent on your situation or have multiple game objects with several different combinations of UI elements and play with them.Or if you do not want to store all of them in the scene simply save them as prefabs and instantiate these objects on demand
Hope it helped)
Your answer
Follow this Question
Related Questions
Text animation not working in play mode 0 Answers
Play animation only once? 1 Answer
How can i pay a animation again and agan? 1 Answer
Change UI outline/shadow via animation 0 Answers
Did Animator change how it writes properties since Unity 5.5? 1 Answer