Author Topic: How To SetActive True/False A NGUI's UI Object From Inspector Using OnClick?  (Read 282 times)

Drk Knght

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Hello,
Unity UI gives option to set active true/false objects from inspector using its default OnClick as shown in the following screenshot.
https://prnt.sc/fljxwk
What is NGUI's equivalent to this?
Regards,
DK

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,137
  • Toronto, Canada
    • View Profile
You can't pass fixed values to the event delegate used by NGUI. It's more simplistic -- it's basically ideal for calling simple functions such as PlayForward() or PlayReverse().