Author Topic: UIScrollView Problem (with NGUI 3.9.6)  (Read 4359 times)

arumons

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
UIScrollView Problem (with NGUI 3.9.6)
« on: February 25, 2016, 01:07:42 AM »
Dear Aren,

I have a small question regarding UIScrollView.cs in NGUI version 3.9.6.

Before I have used Unity3d 4.6.5 (with NGUI 3.7.2). Onced I upgraded to Unity3d 5.3.2 (with NGUI 3.9.6), ScrollView spring functionality got broken (If I disable spring in ScrollView, spring effect still persists).

In UIScrollView.cs , there is a commented code (from line 849 - "We want to constrain the UI to be within bounds"), which if uncommented, fixes ScrollView spring functionality.

So I was wondering, if it is ok to uncomment that code (was it commented out for reason?) ?

I'm looking forward to your reply.

Best Regards,
arumons

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView Problem (with NGUI 3.9.6)
« Reply #1 on: February 25, 2016, 10:03:52 PM »
It was causing some issues for me in the endless scroll view example from what I recall, which is why it's commented out. If it works for you, you can leave it commented out.