Author Topic: UIImageButton Scale  (Read 3818 times)

Chris_E

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 37
    • View Profile
UIImageButton Scale
« on: January 23, 2014, 08:35:06 PM »
I need to scale a button that uses the UIImageButton script down by 50%.  I tried changing the scale on the transform and the numbers on the UISprite's height and width, but neither has an effect after I press play.  Is there any way to do this?

Edit:  I commented out all of the "target.MakePixelPerfect();" calls and it fixed the issue.  Leaving this here in case anyone else tries the same thing.
« Last Edit: January 23, 2014, 08:51:45 PM by Chris_E »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIImageButton Scale
« Reply #1 on: January 24, 2014, 10:39:53 AM »
Scale the parent instead.