Author Topic: Scroll view softclip problem in Android devices  (Read 5139 times)

itachi11

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Scroll view softclip problem in Android devices
« 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:


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.
Let's help each other

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile

itachi11

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Scroll view softclip problem in Android devices
« Reply #2 on: April 28, 2015, 05:07:04 AM »
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.

Let's help each other

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll view softclip problem in Android devices
« Reply #3 on: April 29, 2015, 06:26:14 PM »
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.

itachi11

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Scroll view softclip problem in Android devices
« Reply #4 on: April 30, 2015, 05:29:29 AM »
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.

Let's help each other