So i have the EverydayPack-Men Maximo animation pack i bought from Unity store.
I loaded my Michael 4 into Unity He is at Assets/BackgroundCharacters
Then i have the Assets/EverydayPack-Men folder.
The animations are under
Assets/EverydayPack-Men/Character/Unity3/
They are things like walk, jog, idle. The anims are of extension ".anim"
So anyways i just made this script called "CharacterAI", under Assets/BackgroundCharacters where my fbx character is.
*****
public class CharacterAI: MonoBehaviour {
Animation anim;
void Start(){
anim = walk.anim;
}
void Update(){
if(anim.isPlaying == false)
anim.Play();
}
}
And it doesn't work. like it doesn't find the animation or something like that. or that it's not compatible.
At one time i tried setting the Animation anim;
to public Animation anim; so that an input field is created when i load the script onto the character in the Inspector tab . But when i click to choose the animation, the window is too long and i can't reach the apply button if there is one at the bottom because the window( on Mac) goes beyond the bounds of the Disaplay area.
Currently i'm getting this message
"the name 'walk' does not exist in the current context.
PS I even dragged the walk.anim from the EverydayPack-man folder to the Assets/BackgroundCharacters folder where my daz fbx is but i get that mesage
↧