Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

restart animation unity

myAnimator.Play("Roll", -1, 0f);
//If the animation has an exit time set up in the animator view, this would make
//it not play. If it needs to finish, make sure to call when the animation is finished
 
PREVIOUS NEXT
Tagged: #restart #animation #unity
ADD COMMENT
Topic
Name
5+2 =