animator controller setTrigger problem

hey guys
i have simple and annoying problem
i just wanna animate my character to specific movement in specific moments
but i doesn’t seem to work
my code here, very simple

animator.SetTrigger("Idle")
animator.SetTrigger("Run");

if it execute itself, character should animate as “Run”.
but it is actually “Idle”
i have no idea what’s going on here.
maybe it happens by the particular properties of each anim??
here is the my anims info

I think I would need to see the whole context of where you are using the code. But my guess is that you aren’t using Animator.ResetTrigger() to turn the one you aren’t using off.

So, something like this maybe(?):

// when you want to idle
animator.SetTrigger("Idle");
animator.ResetTrigger("Run");

//when you want to run
animator.SetTrigger("Run");
animator.ResetTrigger("Idle");

I would probably need to see the full context to help anymore though.