Quantcast
Channel: Latest Questions by CallToAdventure
Viewing all articles
Browse latest Browse all 62

Mixamo Call Animation from Script

$
0
0
I have this NPC moving around on the navmesh, I imported it by the book, as well as it's 2 animations, following the tutorials on Mixamo.com. Set up the state machine with the 2 animations plus transition and all; however, i think its how I call the animation from script that seems to be the problem, using this: animation.Play("Neanderthal@idle_1"); The walk animation is played, but when it comes to idle, I get this errors and warnings: The AnimationClip 'Neanderthal@idle_1' used by the Animation component 'NeanderthalAgent' must be marked as Legacy. UnityEngine.Animation:Play(String) AgentWalkScript:chase() (at Assets/Developer/Scripts/AgentWalkScript.cs:53) AgentWalkScript:Update() (at Assets/Developer/Scripts/AgentWalkScript.cs:26) and The animation state Neanderthal@walk could not be played because it couldn't be found! Please attach an animation clip with the name 'Neanderthal@walk' or call this function only for existing animations. UnityEngine.Animation:Play(String) AgentWalkScript:chase() (at Assets/Developer/Scripts/AgentWalkScript.cs:53) AgentWalkScript:Update() (at Assets/Developer/Scripts/AgentWalkScript.cs:26) I checked and double checked everything :( Plase advice, I may not see something.

Viewing all articles
Browse latest Browse all 62

Trending Articles