unity start animation code code example Example: play animation through script unity animator.Play("StateName");