How can i activate a 3D animation with mouse left click?

I just imported a 3D object from blender with an animation for the first time and i’m trying to make that animation play when i press my mouse and then when its done reverse it to its original position, HOW?

Best place to find the answer to this question.
https://unity3d.com/learn/tutorials

1 Like

i find nothing that can help me there, sorry

Need a bit of background here. Are you able to get the animation to play at all?

1 Like

Yes but only if i plug it directly to the ¨Entry¨ an then it only plays once and skips back to the original position

I would need to have some sort of script in the marked area and something between entry and default

Take a look at this. I think it demonstrates what you are after.

http://www.woodcockcreative.com/EthanJumping.unitypackage

1 Like

OMG i got it to work perfectly with that code thank you sooooo much :slight_smile:

My Pleasure.

Cheers!