Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: NnelGdaBandit on June 21, 2013, 02:21:55 PM

Title: Unity 4 - Clipping Issues
Post by: NnelGdaBandit on June 21, 2013, 02:21:55 PM
I've been using NGUI on Unity 4, and most things seem to work great. The only problem I have is with using Panel clipping. Even on the examples, if I have any clipping on whats inside that panel will not render. Has anyone come across this problem or have a solution to it?
Title: Re: Unity 4 - Clipping Issues
Post by: ArenMook on June 22, 2013, 06:09:34 AM
Make sure your panel has uniform scale. Select the UIRoot and hit ALT+SHIFT+P. Also you have to have shader support. GLES 1.1 = no shaders.
Title: Re: Unity 4 - Clipping Issues
Post by: NnelGdaBandit on June 23, 2013, 10:10:30 AM
I'm using OpenGL ES 2.0, and I tried your shortcut and now its rendering but its just a single flat color instead of the image. Any ideas on fixing that? Thanks for your response!
Title: Re: Unity 4 - Clipping Issues
Post by: ArenMook on June 23, 2013, 10:23:41 AM
Single flat color means you don't have shader support. Is quality set to fastest? Fastest means no shader support.
Title: Re: Unity 4 - Clipping Issues
Post by: NnelGdaBandit on June 23, 2013, 10:43:46 AM
The quality is set to good, anywhere else shader support would be turned off? It looks the same o both the PC and Android player, its not a Unity 4 issues right?
Title: Re: Unity 4 - Clipping Issues
Post by: ArenMook on June 23, 2013, 03:41:04 PM
No, it's not a Unity 4 issue.

FAQ: http://www.tasharen.com/forum/index.php?topic=6.msg11833#msg11833
Title: Re: Unity 4 - Clipping Issues
Post by: NnelGdaBandit on June 24, 2013, 09:01:56 AM
I went over those 5 things and they all seem to check out fine. I created a blank project with, imported NGUI and the panel demo and this is what I'm getting.

This happens when the panel is all the way at the beginning and or while it moves, otherwise they just don't appear. Thanks for all your help man, sorry this is a pain :(
Title: Re: Unity 4 - Clipping Issues
Post by: ArenMook on June 24, 2013, 10:04:21 AM
It's like your graphics driver doesn't support shaders.
Title: Re: Unity 4 - Clipping Issues
Post by: NnelGdaBandit on June 25, 2013, 09:08:18 AM
It's the same on both my computers, once I get some time I'll look into the code to see whats going on. Thanks for your help, if you have any other info or ideas that could help please let me know.
Title: Re: Unity 4 - Clipping Issues
Post by: NnelGdaBandit on July 01, 2013, 12:11:23 PM
I managed to fix this by updating. I was using 2.6.1 but the clipping works fine with the latest version.