How can I do that? ( animation )

hi I have a request I want to hit a button and then an animation get play
but I have no idea how can I do something like that

what is code of animations play ?
thanks

Welcome to the boards!

Basically you may want to (in the meaning of “should” :wink: ) have a look at the scripting references.

Any property and method you need is covered there - what you need is a simple animation.Play() call.

thanks sorry I’ve just started unity for 2 days

tis ok, there is lots of documentation. I would start with tutorials on Youtube or on various sites. Just simply do a search in google for Unity Tutorial and you will find lots of stuff.