Hello Guest

Author Topic: Chaning tk2dUIItem event sprite image  (Read 3451 times)

seitor

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Chaning tk2dUIItem event sprite image
« 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?

gary-unikronsoftware

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 74
    • View Profile
Re: Chaning tk2dUIItem event sprite image
« Reply #1 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.