Answers for "animate sprite sheet unity in code"

C#
0

animate sprite sheet unity in code

[SerializeField] Animator anim;
//must drag in the animator that you are using

public void StartAnimation()
{
	//can be a float, int, bool, or trigger
    //string is the name of the parameter in the animator
	anim.SetBool("isAttacking", true);
}
Posted by: Guest on June-05-2020

Code answers related to "animate sprite sheet unity in code"

C# Answers by Framework

Browse Popular Code Answers by Language