child rotation hindered by animation..

i’m trying to rotate just the gun(child object) to point at a flying object, the rotation is happening. But the problem is when animation fire(recoil) gets played , gun resets to its original position, kinda overriding the rotation. any ideas how to resolve this issue ??

Just a quick thought on this, possibly look at: AddMixingTransform

Or, if the aiming is constant, you could have it aim inside a LateUpdate function instead of Update