Author Topic: Instant UISprite texture update.  (Read 2375 times)

AlexSudnikov

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 9
    • View Profile
Instant UISprite texture update.
« on: May 28, 2013, 02:56:10 PM »
Hey everyone!

I'm trying to implement some kind of custom version of Image Button : when user clicks it , it's beckoming "clicked" until a certain event takes place.
So i've got a OnHover and OnPress methods reimplemented...the only problem is that even though i have "targetSprite = stateTexture.name" , it only got updated (redrawn) when OnHover and OnPress (or other GUI events) take place ( event though new sprite name is assigned ) ! Could anyone plzzz suggest any solution for it ?:)

Thanks.