Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: catbert on July 02, 2013, 01:34:10 AM

Title: UIEventListner doesn't work 2.6.3
Post by: catbert on July 02, 2013, 01:34:10 AM
Hello.
I use UIEventListener like this

  1. UIEventListener.Get(trBtnOK.gameObject).onClick += OnButtonOK;
  2.  

and it works perfect.

after updating 2.6.3 it doesn't work. OnButtonOK can not be called.

Thank you.
Title: Re: UIEventListner doesn't work 2.6.3
Post by: ArenMook on July 02, 2013, 11:15:32 AM
Check your layers. Nothing has changed in the UIEventListener in the last ~20 revisions.
Title: Re: UIEventListner doesn't work 2.6.3
Post by: catbert on July 02, 2013, 12:55:37 PM
I'm sorry, you're right. It was a layer problem.
My problem was NUITools.AddWidgetCollider() box.center = b.center + Vector3.back * (depth * 0.25f);.
I didn't care this.
Thank you.