Author Topic: Disabling colliders doesn't change to "Disabled Color"  (Read 1767 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Disabling colliders doesn't change to "Disabled Color"
« on: May 29, 2013, 11:30:26 AM »
I have buttons with UIButton linked to UILabels to change the color when they colliders are disabled.


I'm using this on 4 buttons in the main menu, when the game starts, just the first one is enabled and how it's supposed to be the others 3 are disabled. But from this 3 buttons just  1 is changing the color from the "Disabled Color". The others 2 buttons continue with the normal color.


What could be the issue? I should Update the colors?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Disabling colliders doesn't change to "Disabled Color"
« Reply #1 on: May 29, 2013, 11:57:35 AM »
Maybe you have all your buttons linked to the same label? I dont know. Works perfectly fine here.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Disabling colliders doesn't change to "Disabled Color"
« Reply #2 on: May 29, 2013, 01:10:18 PM »
No, it was the UpdateColor function, it's working now.


Thanks.