- Home /
How to swap sprites?
So Im making a 2d game, the main character have various costumes, which the player can select, every costume has diferent animation sprites, what would be the best approach? I was thinking on have a Parent GameObject, and all the diferent costumes as child, and Activate/Deactivate every time the player select a diferent costume.
Thank you
Answer by spiceboy9994 · Feb 27, 2015 at 04:02 PM
Or you could have just one sprite and then switch the sprite at runtime as required:
http://forum.unity3d.com/threads/changing-sprite-during-run-time.211817/
Hope this helps
Thank you spiceboy, I solved this changing the runtimeAnimatorController of my animator.
Your answer
Follow this Question
Related Questions
WhY the exact same object behaves different ? 0 Answers
How to make an animation play after releasing key? 1 Answer
Animation not at correct position W/Video 0 Answers
Distribute terrain in zones 3 Answers
Animation Not Playing - VideoExplanation 2 Answers