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.

GUI.Box always on top?

Discussion in 'Immediate Mode GUI (IMGUI)' started by bigkahuna, Nov 15, 2007.

  1. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    Is there a way to have a GUI.Box that's always on top of all other GUI elements? I have a GUI with several moveable windows that, depending on the screen resolution, sometimes obstruct the hints and main menu. Any way to work around this?
     
  2. NicholasFrancis

    NicholasFrancis

    Joined:
    Apr 8, 2005
    Posts:
    1,587
    Yes:

    But the GUI.Box in a seperate OnGUI script, and set GUI.depth
     
  3. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    A-ha! Thanks works like a charm!