I have two anims loaded into my assets.They are fbx files.
i made a c# script just basic testing…where i say
if( update){
animation.crossfade( “Gwalk”);
}
but it doesn’t work.
when i press play for the game, the animation that plays is “Gstandby”
so it’s seems it’s not even looking at my script.
so what am i doing wrong?
Just to check, you have this script attached to the gameobject that has the animation component on it?
On that animation component, in the animations list there is an animation clip called Gstandby and GWalk?
show all your code… it might help to find the error
thanks everybody i solved it.
I didn’t know how to add animations to the ANimation list(but now i know, you just increase the SIZE number in the Animation list) plus, the FBX had internal animation named “Animation”
and i was telling the script to change to “Gwalk” but the FBX had it named “Animation” so that’s why it was not finding it. To fix this i just renamed it to “Gwalk” in the inspector