Author Topic: Weird Issue, Sprite color property only gets applied once ( dynamically )  (Read 2996 times)

droweed

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 16
    • View Profile
Hi, as the title stated, I'm having a weird issue, where, someUISprite.color = somevalue, is applied only once.

lets say we open an inventory window, and color it Color.white, it applies the first time,
then we close the window, then re open it, and lets say we change it to a new color dynamically to Color.red,
it doesn't get applied anymore, :(

tried fiddling with the inspector in Play Mode, it does apply the color that I've set manually, so I'm guessing
I probably did something very wrong, and missed something obvious :x

any help would be appreciated.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Weird Issue, Sprite color property only gets applied once ( dynamically )
« Reply #1 on: November 23, 2013, 08:36:17 PM »
Do you have another script on it that alters the color, such as UIButton?