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

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.