Author Topic: Update issue with image button  (Read 2015 times)

justinISO

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 52
    • View Profile
Update issue with image button
« on: September 06, 2013, 03:05:34 PM »
I saw there was an update this morning and after installing it I found an issue when I create a new Image Button using with widget wizard. I set all of the state sprites for the button and then click "add to" and the background of the image button defaults to the first sprite in my atlas and not what I set it to. Also noticed that when I change it, it does not correctly resize the collider. Is this just a new bug from the update?

Thanks,
Justin

OnlineCop

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 51
    • View Profile
Re: Update issue with image button
« Reply #1 on: September 06, 2013, 03:39:42 PM »
I had updated to 2.6.5 earlier this week, and saw the same. 2.6.5b appears to have the same issue.  :-\

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Update issue with image button
« Reply #2 on: September 06, 2013, 11:41:46 PM »
The collider would never resize. You have to resize it manually (ALT+SHIFT+C hotkey).

Remove [ExecuteInEditMode] from the UIImageButton class and it'll work correctly. Hitting Play also fixes it btw.