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.

LineRenderer on top of UnityGUI, can this be done?

Discussion in 'Immediate Mode GUI (IMGUI)' started by cecarlsen, Nov 19, 2007.

  1. cecarlsen

    cecarlsen

    Joined:
    Jun 30, 2006
    Posts:
    798
    Hi forum

    I've been reading though the treads about GUI layering and as I understand graphic elements are rendered something like this:
    • 3) 3D scene objects
      2) GUITexture, GUIText
      1) UnityGUI objects
    I need to create an interface where I have costume line (currently created with LineReneder) that needs to go on top of the Unity GUI objects.

    How can this be done?

    Thanks in advance
    ~ce
     
  2. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    As far as I have been able to tell, controls created with the new GUI system are *always* drawn on top. Also, there's no way to force another order.

    You can achieve what you want by using a rendertexture. A cool feature of rendertextures is that you automatically get an alpha, so superimposing the view from your custom camera (that presumably only displays your lines) should be easy.