Author Topic: Updated to Unity 4 and UILabel now draws behind sprite  (Read 2880 times)

Donkey111

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 16
    • View Profile
Updated to Unity 4 and UILabel now draws behind sprite
« on: July 13, 2015, 03:19:43 AM »
We have a 'word bubble' prefab in which a UI label was set to sort on top of a sprite.

Its setup like this

prefab transform
 ->UISprite (Word Bubble Background)
    -> UILabel (Words A)
        ->UIlable (Words B)

Words A now sorts behind the sprite on mobile after updating to Unity 4 (and updated NGUI). Its inconsistent in the editor. I'm sure the label is set to draw in front of the sprite. I even tried giving the label its own panel.

So the "fix" we found is that it works fine if we change the font. But we really liked the look of the old font, which was working fun before we update.

Any suggestions on how we could fix this draw issue?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Updated to Unity 4 and UILabel now draws behind sprite
« Reply #1 on: July 14, 2015, 11:47:51 PM »
What draws in front of what depends entirely on that widget's depth.