I have a menu created that displays sprites vertically in order to display achievements. Each sprite represents an in-game achievement.
I want the menu to change this sprite when the achievement is unlocked by using a variable.
I am unsure how to do this. I have made a sprite sheet contained both the activate and inactive achievement variable. Whenever I attach this sprite to my Achievement Label background texture it displays the entire sprite sheet.
Is there a way to get this working?
Thanks for the help, any would be very much appreciated,
Exile22
Comments
Hi, i'm trying to achieve the same. Would need animataed sprites in some menus (like Character selection) but i didn't find any "Animate?" option anywhere.
How can i put an animated tecture for example on a button? Thanks
For animated buttons, use Unity UI.
You can then set your UI Button component's Transition property to Animation, which allows you to make use of a regular Unity Animator component to control its appearance.
Animating the button's background would then be a case of creating a sprite-swap animation for its Image sprite.
Thanks for your suggestion but did not work
Made a UI menu, created button, choosen animated, created animator controller but animation is not working...
Also in animation preview nothing moves
yt say "sprite missing" but the sprite is there...
Ok done! i used the record button and now works