[4.6] How to set Animator bool on/off use new UI Button "Click()"

I just saw Unity 4.6 New UI System overview video.

I want to make slide menu same as video.

Push Button → Full menu open … Push Button again → menu close … like this.

AnimatorController and AnimationClip is ok.

But I can’t understand how to set Button “OnClick()” setting.

already checked sample project … but confused!



I had this same issue. I ended up creating a method that would use do Animator.SetBool(“Open”, true);

Alternately, you can do SetTrigger and ResetTrigger from On Click ()