How do I play my animations w. Mechanim?

This question is very simple. I’m very familiar with the animation component(maybe too familiar to understand mechanim?). But since mechanim should be better, I would like to try it out. Maybe you guys can help me translate this:

gameObject.animation.Play("Walk");

Into mechanim-friendly code?

-thanks :slight_smile:

Here you go mate this should help you set things up. It helped me

Good luck, I really hate that they added a new method for animation but it does look a lot more useful than baking in animation for each model.