Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: dfranzi on December 05, 2013, 07:23:47 PM

Title: Depth Issue - NGUI with 2D Toolkit
Post by: dfranzi 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?
Title: Re: Depth Issue - NGUI with 2D Toolkit
Post by: jaz1974 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
Title: Re: Depth Issue - NGUI with 2D Toolkit
Post by: dfranzi 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.
Title: Re: Depth Issue - NGUI with 2D Toolkit
Post by: ArenMook 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.
Title: Re: Depth Issue - NGUI with 2D Toolkit
Post by: dfranzi 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?
Title: Re: Depth Issue - NGUI with 2D Toolkit
Post by: ArenMook on December 06, 2013, 06:36:45 PM
When I'm done documenting and tweaking things, pretty much.
Title: Re: Depth Issue - NGUI with 2D Toolkit
Post by: simon.yu 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/ (http://gototokyo.blog.163.com/blog/static/283834201461112928688/)