Author Topic: Finding UIToggle Option can be none.....  (Read 1360 times)

nugurejeil

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Finding UIToggle Option can be none.....
« on: March 11, 2014, 01:44:40 AM »
Hello! now Im making Tabs with NGUI(Ver 3.5.3) and have a small problem..

im using UItoggle to make tabs. In the parents tab, it has another child tabs again. and When i played , parents tabs remember which child tabs were activated!

I want their state back to start state(selected nothing) in every time when i select each tabs. So. i was searched to solve this and finally I found 'optionCanBeNone = false ' in UIToggle script.

I think this is what i really want.

but i'm not familiar with code. could you give me some advice or example of code?

How can i activate optionCanBeNone = true ?? 

please help!  :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Finding UIToggle Option can be none.....
« Reply #1 on: March 11, 2014, 06:27:01 PM »
Place them on different groups. Parent tabs should be using one group, child tabs should be using another.

If you are simply trying to reset the child tabs when switching parent tabs, have a script that sets some target UIToggle.value to 'true' in OnClick().