Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

3dText Always Behind a Sprite

Discussion in '2D' started by imgodot, Jan 1, 2014.

  1. imgodot

    imgodot

    Joined:
    Nov 29, 2013
    Posts:
    212
    I have a 3dText object attached to sprite A.
    It uses a standard font.

    I have another sprite B which blocks (show on top of) the 3dText object.

    How do I make the 3DText show up on TOP of sprite B instead?

    I've seen lots of people asking the opposite question but nothing for my whack situation.

    Help Mr. Wizard!

    -- Paul
     
  2. unitylover

    unitylover

    Joined:
    Jul 6, 2013
    Posts:
    346
    Change the Z position of the 3D text to something like -1. This will allow the 3D text to display over top of your sprites.

    *edit* You can also change the "Order in Layer" value of the sprites.
     
  3. imgodot

    imgodot

    Joined:
    Nov 29, 2013
    Posts:
    212
    UL,

    Thanks for the reply.

    Your "order in layer" comment provided the hint I needed.

    I had previously played around with the sorting layer of the sprite that was occluding my 3DText.
    Once I set the sorting layer to "Default" it worked.

    Thank you!

    I'm afraid I'm still rather confused about the visual ordering of objects between "Layer", "Sorting Layer" and Z values.

    -- Paul