- Home /
Animation from child won't show ingame
Hi, I'am recently working on little ARPG project. I have manage to apply idle and running animation to the player but I have huge problems with sword attack animation. My main animator which includes running and idle animations is on main Player object (as in first screenshot). Game right now is working like that: I can move character with click of the mouse and after clicking V button sword prefab is initiated in empty called "Weapon". To this point everything is fine, after equipping weapon I have SetTrigger function on "X" button.X button enables SetTrigger that is calling trigger parameter in animator of Sword Prefab which should start Weapon Swing animation.
In animator I can see that X button is working as it should, animation is playing (like in second photo) but nothing is happening. Both player and weapon have same controller (Knight), after pressing X only animation in Sword Prefab is playing, nothing changes in game or in Player (Parent) Animator. Only problem I can think of is that child animation can't override parent animation but after three days of trying to figure it out I just gave up. I would be really greatful if someone could help me out in this one, I can provide more info anytime.
Your answer
Follow this Question
Related Questions
Animations don't work with humanoid avatars 0 Answers
Display additional animation on top of other animations 0 Answers
Trying to learn Java Script but having some issues...with this code. 0 Answers
How can I change my AnimatorState instantly? 1 Answer
Controlling an Animation's playback through the Animator Component? 0 Answers