- Home /
Question by
importguru88 · Jul 18, 2016 at 01:51 AM ·
errorstringparametersexistsdont
Error : Parameter 'Dead' does not exist. UnityEngine.Animator:SetTrigger(String)
I am trying to get my die animation to work . Its not working at all. My die animation will only work when I enable parameter manually before I press play and while the animation is playing it while also stop all of the other animations. I have some pic here to see what I am talking about. Here is my code :`
if (m_DeactivateOnDeath) {
Scheduler.Schedule(m_DeactivateOnDeathDelay, Deactivate);
GetComponent<AudioSource>().Play();
anim.SetTrigger("Dead");
}
}
die-parameter.png
(217.9 kB)
aaeae.png
(239.8 kB)
Comment