Author Topic: Problem with UIPanel(SoftClip) on ScrollView  (Read 1506 times)


  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Problem with UIPanel(SoftClip) on ScrollView
« on: May 13, 2015, 02:07:27 AM »
I'm using NGUI 3.6.1 and Unity 4.5.1

I'm trying to make a ScrollView with Drag&Drop Item's in it, same as NGUI Example 11.
But When I make this in UI 2D (with 2D colliders), it has a problem.
You can get the same problem by changing Example 11 to 2D Colliders using Extra->Switch to 2D Colliders

The problem is that you can scroll the scroll view, but you can't drag&drop items in the scroll view.
And I spent tremendous time trying to figure this out and found this weird behaviors.

1. This problem only happens when I set ScollView's UIPanel Clipping option on SoftClip. It works fine on None or Constrain But Don't Clip.

2. If I place the Container(parent of the scroll view) at (0, 0, 0), it works fine with SoftClip, but when I move it to (+101, 0, 0), or (-101, 0, 0) it doesn't work. The number '101' is (half the size of ScrollView's UIPanel Size.x)=100 + 1
When I extend the UIPanel Size.x to 400. It's works untill I move the Container over (201, 0, 0) or (-201, 0, 0)

This is all what I found out atm.
If the items were never draggable, I wouldn't post this issue, but it works in someways and I hope this is the sign that this could be fixed.


  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with UIPanel(SoftClip) on ScrollView
« Reply #1 on: May 14, 2015, 06:01:02 PM »
From what I recall, Unity's 2D physics have issues with small colliders, but that's all I can think of.