Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: itachi11 on April 27, 2015, 01:11:50 AM
-
Hi everybody,
I have an undesired behaviour in scroll views with softclip. The problem only happens in Android devices, actually I did not try it in iOS devices, but it works as expected in Unity tool.
- Unity 5.0.1f
- Android 4.4.2
- NGUI 3.8.2
Expected UI: Android UI: Scroll View settings:
(http://s1.postimg.org/p7is61c1n/NGUI_UI.jpg) (http://postimg.org/image/p7is61c1n/)(http://s1.postimg.org/okjvgif5n/phone_UI.jpg) (http://postimg.org/image/okjvgif5n/)(http://s1.postimg.org/eyqb07nzv/scroll_view_settings.jpg) (http://postimg.org/image/eyqb07nzv/)
Any guess about what could be the problem?. It seems the softness of the scroll view panel is and limit of the panel is not working as expected.
Thanks in advance, regards.
-
http://www.tasharen.com/forum/index.php?topic=6.msg11833#msg11833
-
Hi ArenMook,
First of all, thank you for the fast answer.
I tried all the advices explained in the FAQ, but none of them worked for me. In Unity 5 GLES 1.1 is no longer used, the min version is 2.0.
Actually, the panel of the ScrollView is clipping properly. The problem is that the panel only hides an object of the Grid, when it is completely out of the panel bounds. If you look at the second image of my the first post carefully, all inner object of the first element of the Grid are hidden. If I would move a little bit more the ScrollView, it would hide the complete object. However, in the first image, the panel applies softness to the element, being able to hide part of it without the necessity to move the complete object out of the panel bounds.
Any idea what could be the reason?. To be honest, I have no idea how to fix it.
Thanks in advance, regards.
-
Assuming your quality settings are not set to "fastest", make sure the shaders NGUI uses are in their proper place in the Resources folder where NGUI will be able to find them. Also make sure that the atlas is using the Unlit - Transparent Colored shader.
-
Thank you for your help ArenMook,
I found the problem. My dear coworker had the great idea of changing the name of the NGUI inner Resources folder to NGUIResources. Therefore, NGUI could not find the Shader when it was running in a phone.
Regards.