construct make animation from sprite sheet code example
Example 1: how to add a trail to a sprite in scratch
definemyface
Example 2: 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);
}