- Home /
2D weapon switching
hello everyone, I'm wondering if there is a more simple way to switch weapons using animated sprites. The only solution I came up with right now is to create identical animators for every weapon, but the animations in the animator contain the sprites for the animation itself, and have a GameObject switch between these animators.
Since the game will have a good number of weapons, is this necessary? We're not using bones, just sprites, so replacing a sprite just won't do it. Is there any simple way to achieve this? Thanks in advance.
Answer by Andre_51X · Jun 14, 2017 at 01:16 PM
I was able to find a workaround by re animating the position manually following the spritesheet. Now all that I have to do for every weapon is just change the sprite in the SpriteRenderer.
Your answer
![](https://koobas.hobune.stream/wayback/20220612124105im_/https://answers.unity.com/themes/thub/images/avi.jpg)