Animation works only once on button click

Hello everyone!

The title above sums it up pretty well, but here are some images to explain how the animation works only once on a button click, and to find the reason behind this.

The Animator:

111952-animator.png

Button OnClick (Image 1), and Animation Inspector (Image 2):

111953-buttonandanim.png

Any help is greatly appreciated!

Hey there,

Seems like I have the same Problem…

But you can just create a simple script for that… should’t be too´hard to figure out how :wink:

Have a nice day,
WbrJr

Here is an answer I got when reposting the question:

Animation works only once when button pressed

You can just use


public Animator animator.

void Update()
{

if(Input.GetKeyDown(KeyCode.Space))

{

animator.Play(“tailanim”);

}

}


This is the best way to play animations from Animator!!!


loop time should be checked in the second picture