Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: arumons on February 25, 2016, 01:07:42 AM

Title: UIScrollView Problem (with NGUI 3.9.6)
Post by: arumons 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
Title: Re: UIScrollView Problem (with NGUI 3.9.6)
Post by: ArenMook 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.