- Home /
How do I check to see if the animator controller is working or now
I have a problem . The problem is the I don't why all of the idle , move , and attack animation work. I close and restart unity and report the bug to unity3d . They was say to check the animator controller . It keep saying parameter don't exist. . I got it to work on other enemy ai's. I dont' know why its saying this again. I have everything coded right and parameter right. I can restart the controller. When I look at the animation controller . I doesn't say it isn't intialize. Here are some pics :
if (m_DeactivateOnDeath) {
Scheduler.Schedule(m_DeactivateOnDeathDelay, Deactivate);
GetComponent<AudioSource>().Play();
anim.SetTrigger("isDead");
GetComponent<Enemyai>().enabled = false;
}
}
Answer by boris709 · Jul 29, 2016 at 05:31 AM
Are you other parameters working? Also are you using a search function to find the animator? Maybe its finding an animator on another character possibly.
Try using a bool instead of a trigger. anim.SetBool("isDead", true);