Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: enzi on May 02, 2014, 04:54:03 PM

Title: Weird transparency sorting problem with new NGUI
Post by: enzi on May 02, 2014, 04:54:03 PM
Hey Tash!

I recently upgraded from 3.0.6 f1 Ngui to the latest (3.5.8).

There was no problem with NGUI itself but my quad rendering was suddenly screwed up. Here's a screen:
(http://win.polypod.net/enzi/feedMeBug.png)

First I thought, NGUI can't be the problem here, but I reverted back and forth to the old version and it was always the same result. Old worked, new one doesn't
I use a custom shader for quads, no NGUI stuff used.

So do you know, if there's anything that could interfere with this?

Thanks in advance
Title: Re: Weird transparency sorting problem with new NGUI
Post by: enzi on May 02, 2014, 05:03:45 PM
Omg, I'm looking 4 hours into this and after writing this I found the solution 5 minutes after. Typical, isn't it?

I explicitly set the camera now to

  1. camera.transparencySortMode = TransparencySortMode.Orthographic;

This solves the issue. That the issue didn't occur in the old version perplexes me still, but at least it's solved.

Greetings
Title: Re: Weird transparency sorting problem with new NGUI
Post by: ArenMook on May 04, 2014, 10:31:04 AM
NGUI does it for you on line 941 of UICamera.cs, but the event type must not be set to "world".