Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Canvas in world space causing ordering issues

Discussion in 'UGUI & TextMesh Pro' started by shawhu, Apr 24, 2016.

  1. shawhu

    shawhu

    Joined:
    Mar 11, 2016
    Posts:
    17
    Guys,

    I'm pretty sure it's a bug. It only happens when the canvas uses world space. It works fine in default settings if world space has not been selected.

    Create a Box, create a canvas, drag it to be the child of that box and make the canvas using world space. Now, try to add 2 UI elements. So far from what I see, the image control will block others no matter how you arrange the order of those two. I've uploaded a screenshot, in it you can see that the TitleBG supposed to be at the back and not blocking the text while it clearly did.


    Here is the question, is it a bug? and if so what should I do? Any workaround?
     

    Attached Files:

  2. shawhu

    shawhu

    Joined:
    Mar 11, 2016
    Posts:
    17
    It's not a bug, I forgot to set Pos Z for each item.