Author Topic: Notify UIToggle  (Read 1158 times)

WavyRancheros

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Notify UIToggle
« on: September 24, 2014, 07:04:05 AM »
Hi,

I have a couple of Toggle Buttons whose values I want to set to true/false when I click certain UIButtons. So I thought I would just notify them via the OnClick event and set their values. But it seems I can't use OnClick Notify on UIToggle components? It just never shows up in the Inspector. It works for UIButton, UISprite, TweenPosition and all that stuff, but not for UIToggle?

Any help greatly appreciated.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Notify UIToggle
« Reply #1 on: September 24, 2014, 02:37:21 PM »
You'll need to attach a UIButton or UIEventTrigger to get OnClick. Or just add a script that has "void OnClick ()" in it.