Author Topic: UILabel disappears after changing parent position.  (Read 2643 times)

mpplayer1

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
UILabel disappears after changing parent position.
« on: April 29, 2015, 10:20:19 PM »
Hello. So, I've got a bunch of UIbuttons with UILabels as children. When the user triggers some actions, the buttons shrink and move away from the screen. Another action brings the buttons back and resize them back to their original size at the same place as before. So, the problem is when another action, instead of bringing the buttons back to the same place, moves them to another location and grows them back to their normal size. For some reason, now the UILabels just disappear. Trying to change anything in the inspector (like color tint for example) makes the labels show up again. What is going on?

Things that do NOT solve my problem:
-Changing Depth
-Changing position.z

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel disappears after changing parent position.
« Reply #1 on: April 30, 2015, 06:09:08 PM »
Zero scale? Zero scale is invalid. You can't divide by zero. Attempting to use it causes major issues.