- Home /
Question by
rohank14 · Sep 19, 2021 at 07:31 AM ·
animationaimlocalposition
Animation not working while using transform.localPosition
I'm creating an FPS Game in which I have a GunController Script... Which has DetermineAim() Method, basically a "scope In" function. I also have an Idle animation. So the problem is both Aim and Animation are not working together. If animation is working then the DetermineAim() stops working, and If I remove Animation then it starts working again.
Determine Aim Code:
What it does:
So as soon as add Idle animation to it stop working. Any help or suggestions will be appreciated. Thanks.
PS: I'm a beginner at Unity.
determineaim.jpg
(46.9 kB)
aim.jpg
(105.1 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613043214im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Animation Rigging package issue 0 Answers
AnimationClip in local coordinates 1 Answer
Gun Switching Error 1 Answer