Getting with the times... learning Mechanim/Animator

Hey guys,

I’m trying to progress from the legacy animation system, I’ve become stuck while trying to use a second layer to override the base layer to have my player attack.

I want him to attack once then go back to walking or idling or whatnot. Problem is, once the trigger parameter triggers, it keeps looping indefinitely. How do I get it to quit with this layer and just go back to playing nothing?

I would think the trigger would allow this behaviour as it is only “true” for one frame.

Thanks! see pic for stuff

You need to add a transition back from your attack state to your idle state, using exit time with no other conditions. That way, when the animation is finished, the state machine will transition back.