Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: AlexSudnikov on May 28, 2013, 02:56:10 PM

Title: Instant UISprite texture update.
Post by: AlexSudnikov 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.