Author Topic: Why I can't assign any MonoBehaviour to any notify?  (Read 3811 times)

Zeeppo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Why I can't assign any MonoBehaviour to any notify?
« on: October 21, 2014, 11:02:42 AM »
hi! First of all, forgive me about my english, hope you can understand me.

I'm using the new NGUI for the first time (I was using the old one for a long long time) and I believe there's something wrong with it... I just can't assign any MonoBehaviour to the On click Notify on the UI Button inspector. Even I if copy the one you assign on the tutorial video, the "not allowed" mouse sign persists, and if I click on target button near the notify filed, there's no script available on the scene or assets tabs... It doesn't make sense, I'm creating my script as public, there's a public void function on it, but I'm not able to assign it to any notify (even if try with UIEvent Trigger script)
Is that a bug or am I doing something wrong?

PS: I'm using the last NGUI version available on the store and Unity 4.5.4f1

haibo19981

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 1
    • View Profile
Re: Why I can't assign any MonoBehaviour to any notify?
« Reply #1 on: October 21, 2014, 10:56:04 PM »
See following documentation.It can answer your question.
http://www.tasharen.com/forum/index.php?topic=6708
In addition,you can learn from NGUI's example:
NGUI/Examples/Scenes/Tutorial 4.unity