Hey I have a character that si animated and I put the muzzleflash on the tip of the gun, but since its an animation It doesnt follow the tip. I cant quite figure out how to make it follow the gun. Any way to do this?
You could parent the muzzle flash to the tip of the gun.
i.e. muzzleFlashGameObject.transform.parent = muzzleGameObject.transform;
Although that could look kinda unusual with a lot of recoil, but it’ll make it match positions (if you don’t continually adjust muzzleFlashGameObjects position).
well i did do that. not in code but in the inspector. but the position of the actual gun never changes it seems since it is animated