Author Topic: Depth/Sorting of ScrollView relative to other NGUI Widgets?  (Read 2484 times)

Peacewise

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 12
    • View Profile
Depth/Sorting of ScrollView relative to other NGUI Widgets?
« on: September 29, 2014, 07:03:40 PM »
Hello,

I have modal dialogs that are set to very high depth, and are supposed to sort in front of all other NGUI elements. However, they sort behind any ScrollViews that happen to be open, even though those have lower depth values.

Is this expected, and if so, what is the preferred method to fix something like this?

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Depth/Sorting of ScrollView relative to other NGUI Widgets?
« Reply #1 on: September 30, 2014, 04:19:12 AM »
Panel depth is more important than widget depth, just like camera depth is more important than panel depth.

Camera depth > Panel Depth > Widget depth.

If you want to have something on top of your scroll view, you need an additional (3rd) panel:

Panel 1 (background)
Panel 2 (scroll view)
Panel 3 (on top of scroll view)