2D Toolkit Forum

2D Toolkit => Support => Topic started by: seitor on September 05, 2013, 09:02:13 am

Title: Chaning tk2dUIItem event sprite image
Post by: seitor on September 05, 2013, 09:02:13 am
In old version, you can specify "Button up sprite" and "Button down sprite" from editor, how is it done in tk2dUIITem?
Title: Re: Chaning tk2dUIItem event sprite image
Post by: gary-unikronsoftware on September 05, 2013, 09:24:44 am
Hi,

You can add the component tk2dUIUpDownButton to your tk2dUIItem game object, then specify 2 different sprites for the object and drag them to the 'Up State GameObject' and the 'Down State Game Obect' slots on the component.