Author Topic: How can I change UICheckbox to UIToggle?  (Read 3272 times)

hmnyari

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 29
    • View Profile
How can I change UICheckbox to UIToggle?
« on: November 07, 2013, 09:01:51 PM »
I saw youtube upgrade guide
but I can't understand...
this is my previous code(2.6.3)

checkBox.GetComponent<UICheckbox>().eventReceiver = anyGameObject;
checkBox.GetComponent<UICheckbox>().functionName = "WhenActivate";


How can I change this codes to using UIToggle(3.0.4)?

« Last Edit: November 07, 2013, 09:24:56 PM by hmnyari »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How can I change UICheckbox to UIToggle?
« Reply #1 on: November 08, 2013, 10:42:46 AM »
Global replace. Watch the upgrade video, it does this as well.