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

Question about UI Renderer order

Discussion in 'UGUI & TextMesh Pro' started by GollumZzz, Nov 10, 2014.

  1. GollumZzz

    GollumZzz

    Joined:
    Aug 1, 2012
    Posts:
    24
    Hi,

    I need to change some functions from NGUI to new UI, before, I have a 3d mesh need to show upon the UI, I just put my mesh to the UI pos with UI layer, I can direct use orthographic camera for mesh rendering and it is enough for the case.
    In new UI, I didn't find a way to control the depth for rendering order, so I can not not simply put a camera for that mesh, in the mean time, is the RawImage through rendertexture the only solution?
     
  2. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    you can control the depth of the canvas in Screen Space - Camera mode. You'd then just need to have your mesh in front. If you mean you need to layer UI above and below the mesh then you'd either need 2 canvases or the RawImage through renderTexture.
     
  3. GollumZzz

    GollumZzz

    Joined:
    Aug 1, 2012
    Posts:
    24
    Great! it works.