Quick answer: When SetTrigger looks like it does nothing, check whether the transition has Has Exit Time on. With it on, the trigger sits in the queue until the current animation reaches the exit fraction. Either disable Has Exit Time, set Exit Time to 0, or call ResetTrigger first to clear stale state.
Here is how to fix Unity Animator triggers that fire in your code but never actually advance the state machine. The parameter flashes white in the Animator window for a frame, then disappears without any state change. The character keeps running its idle. Almost always the culprit is the transition’s exit-time setting eating the trigger before the destination state is reached.
The Symptom
animator.SetTrigger("Jump") runs without exception. The Animator window shows the trigger pulse for one frame in the parameter pane. The state stays in Idle. No transition occurs. Pressing the trigger key several times in a row eventually works.
What Causes This
Has Exit Time enabled. Transitions with this checkbox wait for the current animation to play to a fraction (default 0.85) before responding to triggers. A trigger fired earlier than that frame is consumed without effect.
Multiple transitions waiting on the trigger. Triggers are auto-reset after one transition fires. If your graph has two transitions conditioned on the same trigger, only one wins, and which one is determined by transition priority order (top-down in the inspector).
Wrong Animator instance. Calling SetTrigger on a parent Animator when the parameter lives on a child controller does nothing. Or calling on a disabled Animator queues the trigger but it never processes.
Parameter typo. Mecanim does not throw on bad parameter names — it silently does nothing. "jump" vs "Jump" matters; both compile.
The Fix
Step 1: Disable Has Exit Time. Click the transition arrow in the Animator window. In the inspector, uncheck Has Exit Time. Triggers fire immediately on parameter pulse.
Step 2: For animations that should play out, lower Exit Time. If you want the current state to play to a beat before transitioning, leave Has Exit Time on but set Exit Time to a small value like 0.1 (10% of duration). This catches triggers earlier without abrupt cuts.
Step 3: Reset stale triggers before firing.
using UnityEngine;
[RequireComponent(typeof(Animator))]
public class PlayerAnim : MonoBehaviour
{
private Animator anim;
private static readonly int JumpTrigger = Animator.StringToHash("Jump");
void Awake() { anim = GetComponent<Animator>(); }
public void Jump()
{
anim.ResetTrigger(JumpTrigger);
anim.SetTrigger(JumpTrigger);
}
}
Hashing the parameter name avoids the per-call string lookup and exposes typos at compile time.
Step 4: Validate the parameter exists at runtime.
void Start()
{
bool found = false;
foreach (var p in anim.parameters)
{
if (p.nameHash == JumpTrigger) { found = true; break; }
}
if (!found) Debug.LogError("Animator missing 'Jump' trigger");
}
Step 5: Confirm the right Animator. If your character has nested Animators (a hat with its own Animator on the player), GetComponent<Animator> returns the first one found, which may be the wrong one. Use GetComponentInChildren with explicit traversal:
var bodyAnim = transform.Find("Body").GetComponent<Animator>();
Transition Priority
When two transitions could fire from the same state, the topmost one in the inspector list wins. Drag transitions in the order you want them evaluated. To consistently force a particular transition, give it a unique condition combination so other transitions cannot match.
Verifying With Debug Window
Open the Animator window with the GameObject selected during Play. The current state highlights in blue. The active transition arrow turns blue when traversing. Parameters flash white on change. If your trigger flashes but no transition activates, the issue is on the transition (Exit Time, conditions). If the trigger never flashes, your code is calling on the wrong Animator.
“Triggers fire instantly. Transitions decide when to listen. Has Exit Time and ResetTrigger handle 90% of the misfires.”
Related Issues
For animation events not firing, see Animation Event Not Firing. For root motion issues, see Animator Root Motion Not Applied.
Has Exit Time off. ResetTrigger before SetTrigger. StringToHash to catch typos. The state moves.