Author Topic: Sorting order issue  (Read 260 times)

doncarlos91

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 27
    • View Profile
Sorting order issue
« on: May 16, 2017, 04:40:55 AM »
Hi Aren, guys, i`m creating particle system, and just want put it between two widgets, which located in the same UIPanel, but have the different depths.


Any suggestions?

Thanks in Advance

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 300
  • -Receive: 1136
  • Posts: 21,947
  • Toronto, Canada
    • View Profile
Re: Sorting order issue
« Reply #1 on: May 19, 2017, 05:07:37 AM »
You can't put anything in between two widgets belonging to the same panel. Panels batch widgets into one draw call.

You need to use separate panels.

doncarlos91

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 27
    • View Profile
Re: Sorting order issue
« Reply #2 on: May 19, 2017, 06:15:26 AM »
Hi Aren ,  thanks for your reply, we`ve tried with have pushed each widget  in different panels (with 0 and 2 depths), but when we adding particle in panel with 1 depth , no results (.

What do you thinks what we are doing wrong, we have reviewed all codes , but unfortunately not results.

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 300
  • -Receive: 1136
  • Posts: 21,947
  • Toronto, Canada
    • View Profile
Re: Sorting order issue
« Reply #3 on: May 25, 2017, 06:08:28 AM »
Unity's particles have nothing to do with NGUI and they won't be affected by panels' depths. You need to specify sorting layer or sorting groups on the panels and on the particles for what you're trying to do to actually work.