Author Topic: Depth Issue - NGUI with 2D Toolkit  (Read 7309 times)

dfranzi

  • Guest
Depth Issue - NGUI with 2D Toolkit
« on: December 05, 2013, 07:23:47 PM »
I have a UI system setup using NGUI currently. It's working great and I love the NGUI system. The problem is that we have some animations that were created with 2D Toolkit. These animations need to be placed between two of the UISprites used by NGUI.

I cannot find a way using the depth of NGUI or the order in layer option for 2D Toolkit to get this situation to work well. The 2D Toolkit animations either appear on top of or behind all of my NGUI objects. Is there a way to intermingle the order of NGUI and 2D Toolkit objects?

jaz1974

  • Guest
Re: Depth Issue - NGUI with 2D Toolkit
« Reply #1 on: December 05, 2013, 07:47:24 PM »
sorry, I realise this won't help your issue...but in case it raises the issue profile...I've been having the same issue lately.

I eventually got it to do what I wanted by playing around with the z position of the TK2d sprite, but it was through trial and error rather than by knowing why certain things were happening.

Jaz

dfranzi

  • Guest
Re: Depth Issue - NGUI with 2D Toolkit
« Reply #2 on: December 05, 2013, 08:20:09 PM »
It seems to be an issue with everything that's not using NGUI. Particles using Shuriken are having the same issue and can't be mixed between UISprites.

Creating shaders to manually control the depth of each particle system is not a good option.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Depth Issue - NGUI with 2D Toolkit
« Reply #3 on: December 06, 2013, 04:05:46 AM »
You couldn't before. Now you can with 3.0.7. You can now specify explicit render queues on your panels, so if you wanted to sandwich a shuriken particle system in there using render queue of say, 4000, just make sure that the panel has the render queues starting at 4001.

dfranzi

  • Guest
Re: Depth Issue - NGUI with 2D Toolkit
« Reply #4 on: December 06, 2013, 03:57:43 PM »
Sounds great! Thanks for the update. Any idea when this release will be available on the Asset Store?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Depth Issue - NGUI with 2D Toolkit
« Reply #5 on: December 06, 2013, 06:36:45 PM »
When I'm done documenting and tweaking things, pretty much.

simon.yu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Depth Issue - NGUI with 2D Toolkit
« Reply #6 on: July 01, 2014, 11:23:17 AM »
any time if you have problem work with NGUI you can try this:http://gototokyo.blog.163.com/blog/static/283834201461112928688/
« Last Edit: July 01, 2014, 11:40:53 AM by simon.yu »