Touch The Models than play animation

Hi! im new in unity 3d and very beginer, i like to ask question about, when i touch the models, the models can play the animation looks like Tom Cat apps and i like to use c# coding Thank You, Greeting from Malaysian =)

What you’re looking for it’s called raycast. Throwing a raycast perpendicular to the camera plane and going through the mouse position will be able to check if you clicked a collider for a model with your mouse.

Of course you’ll also need to use the Animation class, but this isn’t actually difficult (It was something like Animation.Play(), I don’t remember right now).

But as you said you’re a beginner and this may sound a little abstract so I recommend you to start off with some tutorials and then move on into what you want. Also check out the scripting documentation: Unity - Scripting API: There you’ll find all the classes and methods Unity uses with a description and some good examples (in C# js and boo), just search any class name at the documentation to know of every method in that class.

Hope it helped!

PD: I’m sorry I cannot post any code right now, maybe someone else will answer with a nice script.