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
4 days ago
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)
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
4 People are following this question.
Text animation not working in play mode
Transition of UI Object from random animation frame to a new a animation
Animator has not been initialized??
Change UI outline/shadow via animation