- Home /
Question by
AndrewRyan · Nov 16, 2014 at 02:07 AM ·
2dcontrollerplatformerweaponscharacter-animation
How to switch animation controllers dynamically?
Hi, i'm making a 2d RPG game in Unity. The player character has different weapons he can choose from- sword, spear, etc- and therefor has different animations and stances for each weapon. How would I go about changing these things dynamically? Have all animations in the same animator, or switch out animation controllers for each weapon, if possible.
Thanks
Comment
Best Answer
Answer by SirGive · Nov 16, 2014 at 04:20 AM
If you are trying to create a generic "attack" animation, you can sub out different ones. Its not a beautiful way to do it, but I recently had a similar issue.
Your answer
Follow this Question
Related Questions
2d character controller for platformer with touch or mouse input? 2 Answers
GetButtonDown not always firing 1 Answer
sprite character rotation 0 Answers