A question about Unity.
Animator.SetTrigger does not appear in OnClick() of Button.

Trigger is also prepared in Animator and set in conditions.

I am trying again and again according to the teaching materials, but I don't know how to display SetTrigger.
I would appreciate it if you could teach me how to set Animator.SetTrigger.

  • Answer # 1

    I think the target GameObject specification part of OnClick (the part where "TestE" is currently set) is wrong.
    Set the object that has the target Animator component.