Categories
Uncategorized

Animator Quick Fix

sometimes the standalone player will turn off the animator for npc’s and monsters. The easiest quick fix for this problem is to force them on. Here is the quick solution, and it really works wonders.

public class animatorfixer : MonoBehaviour
{
    public Animator anim;
    // Start is called before the first frame update
    void Start()
    {
       
    anim = GetComponent<Animator>();
        anim.enabled = true;
   }
}

Leave a Reply

Your email address will not be published. Required fields are marked *