Author Topic: UIEventListner doesn't work 2.6.3  (Read 3793 times)

catbert

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
UIEventListner doesn't work 2.6.3
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIEventListner doesn't work 2.6.3
« Reply #1 on: July 02, 2013, 11:15:32 AM »
Check your layers. Nothing has changed in the UIEventListener in the last ~20 revisions.

catbert

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: UIEventListner doesn't work 2.6.3
« Reply #2 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.