Gameobject transform not moving when doing animation
Hi everyone,
I hope someone can give me some help. I have my gameobject called Gun which has been created when doing the rigging of the character. Basically it just contains the sprite renderer, the sprite skin and the sprite resolver (since the player can switch guns during the game).
I'm trying to instantiate a bullet as I used to do in other previous projects at a specific fire point, which is a child game object I placed at the very end of the gun barrel, assuming that it should move with the gun itself and instantiate the bullet and the fire effect always at the end of the gun barrel. The problem is that it always stays in the same position regardless of the position of the parent object (which is the gun). I'm using the 2D animation system to animate and move the character, the gun, the clothes etc. so I'm thinking that it could be related to this problem.
How can I solve it?
Thanks in advance and best
Your answer
![](https://koobas.hobune.stream/wayback/20220613035449im_/https://answers.unity.com/themes/thub/images/avi.jpg)