Mecanim new Trigger parameter explanation?

Hi,

Does anyone knows how the new Trigger parameter on Mecanim is intended to be used?
What’s its difference between a Boolean parameter? Has the name of the trigger parameter to be related with something else? like a gameobject that you collide or something? Its somehow related with events new feature?

Sorry for the vague-open question but its as vague and open as Unity “explanation” of that new feature. :frowning:

Thats the only thing I have found on the net “Trigger parameter, a trigger is a boolean parameter that is reset by the controller when consumed by a transition.”

Any example on how to use it?

Cheers!

Use trigger like this:

        void Update ()
        {
              if (foo > 1.0f)
              {
                   Animator animator = GetComponent<Animator>() as Animator;
                   animator.SetTrigger("Attack2Trigger");
              }
        }

Trigger is used only once so that you don’t have to maintain it.