Author Topic: Sprite Renderer's "Sorting Layer" & "Order in Layer" versus NGUI Depth.  (Read 2932 times)

sb_007

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Is there any means to show NGUI Sprite over UI2D Sprite.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprite Renderer's "Sorting Layer" & "Order in Layer" versus NGUI Depth.
« Reply #1 on: September 24, 2017, 01:35:58 AM »
UI2DSprite is still an NGUI class, and is drawn by NGUI in the correct order by default. Do you mean Unity UI sprite?

sb_007

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: Sprite Renderer's "Sorting Layer" & "Order in Layer" versus NGUI Depth.
« Reply #2 on: September 25, 2017, 12:14:45 AM »
NGUI UI2DSprite.
Actually, I've to draw UISprite over UI2DSprite, but somehow, UISprite goes behind the UI2Dsprite.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprite Renderer's "Sorting Layer" & "Order in Layer" versus NGUI Depth.
« Reply #3 on: October 07, 2017, 05:59:50 AM »
Unless you specified some material override, the draw order is controlled by NGUI -- the widget's depth. Assuming the widgets are drawn by the same panel, of course.