Author Topic: Change UIImage button button states?  (Read 1293 times)

tomster69

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Change UIImage button button states?
« on: February 10, 2014, 10:01:18 AM »
Can someone enlighten me as to how to change the button states in code please?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Change UIImage button button states?
« Reply #1 on: February 10, 2014, 05:09:38 PM »
UIImageButton is what changes a sprite for you. If you're trying to change the sprite yourself, don't even use the UIImageButton. Look inside of it to see how it changes the sprites (sprite.spriteName = "Other Sprite"), and make the script you need.