Author Topic: GUI depth  (Read 2288 times)

btrikojus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
GUI depth
« on: November 16, 2014, 04:24:26 PM »
Hi there,

Is there ANY way to draw NGUI elements on top of built in Unity GUI elements using the latest version of NGUI? What about over GUI Texture objects?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: GUI depth
« Reply #1 on: November 17, 2014, 09:00:23 AM »
No, there isn't. OnGUI is always on top.

btrikojus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: GUI depth
« Reply #2 on: November 17, 2014, 05:06:05 PM »
ok thanks.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: GUI depth
« Reply #3 on: November 18, 2014, 03:27:26 AM »
If you use GUIText an GUITexture, you can use a secondary camera for NGUI and have the GUILayer component on the primary camera that draws before the secondary camera; that means that NGUI's sprites should be above the GUIText. This will not work with OnGUI stuff though.

btrikojus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: GUI depth
« Reply #4 on: November 18, 2014, 10:18:20 PM »
good to know.

Thanks