Author Topic: Sprite change does not stay during runtime due to UITweenColor  (Read 3413 times)

20andup

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
I have button whose's sprite is changed during runtime.  The problem is when I hover my mouse over the button or click the button during play mode in the editor, it goes back to the original sprite set in the inspector. 

What seems to be happening is that the UITweenColor component get automatically added to the GameObject even though there is not code that does that. 
« Last Edit: June 18, 2014, 05:35:51 AM by 20andup »

20andup

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Sprite change does not stay during runtime due to UITweenColor
« Reply #1 on: June 18, 2014, 06:37:05 AM »
Found the problem.  I was setting the sprite via UISprite.  I should set it through UIButton.  :)