Author Topic: Toggled Objects  (Read 2506 times)

Ernest

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 40
    • View Profile
Toggled Objects
« on: October 15, 2014, 05:17:38 AM »
Hi,
simple, I have several Toggle (set as radio) with an associated UIToggledObject and the same GameObject in their Activate list. I want the toggle with the startingState checked to activate the related gameObjects, but it does not (they should be desactivated by the other toggle). On the other hand, there is no problem when i activate the toggle by clicking on it!
Is there a way to achieve this?
Ty

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Toggled Objects
« Reply #1 on: October 16, 2014, 06:12:57 AM »
Deactivated by the other toggle? If the toggles are in a group like you said, then each toggle only needs to reference its own object. How do you have them set up?

Ernest

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 40
    • View Profile
Re: Toggled Objects
« Reply #2 on: October 16, 2014, 06:56:25 AM »
So several toggles can't reference a same object? (imagine a tab system with 4 windows, both of them should activate a same title (label) and the two others another title).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Toggled Objects
« Reply #3 on: October 16, 2014, 07:05:48 AM »
If you need something like that, either don't use the UIToggledObjects component, duplicate the title, or put the title outside the toggled content, as it's written to be simple and binary -- either on, or off, and each component is responsible for its own referenced objects. Mix & match won't work well with it.