Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is there anyway to weave 3D objects in with a GUI?

Discussion in 'Immediate Mode GUI (IMGUI)' started by snaggletooth, Jan 25, 2008.

  1. snaggletooth

    snaggletooth

    Joined:
    Jan 23, 2008
    Posts:
    11
    I'm looking to use a backdrop then 3d objects then the rest of the GUI.
     
  2. HiggyB

    HiggyB

    Unity Product Evangelist

    Joined:
    Dec 8, 2006
    Posts:
    6,183
    The new GUI stuff introduced in 2.0 always draws on top of the objects in your scene so what you seek isn't possible with the GUI features alone. Instead you might consider using one camera that is rendering only the backdrop (a flat plane surface) then the normal game camera rendering after that (on top) so you get the layering you seek.
     
  3. snaggletooth

    snaggletooth

    Joined:
    Jan 23, 2008
    Posts:
    11
    Thanks again
     
  4. Brian-Kehrer

    Brian-Kehrer

    Joined:
    Nov 7, 2006
    Posts:
    411
    If you have pro, you can render to texture also
     
  5. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
    You could also attach an old GUI element to the background camera (and have it do nothing but clear the image buffer) -- I don't know if that's a "cheaper" way to render an element, but I suspect it is.