Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Jason on May 06, 2012, 08:28:30 AM

Title: Scrolling Panel scaling issue
Post by: Jason on May 06, 2012, 08:28:30 AM
Good morning! (Am I the first trouble maker of the day? :)

With Aren's help I was able to implement scaling using clipped panels. Many thanks again, ArenMook!

However, I encountered another complication: scaling applied on the clipped plane produced unexpected results. I only stretched the panel horizontally a little, and the clip box seemed to have shifted a lot. The worst part is that the contents of the entire panel are no longer clipped properly. Rather, they appear/disappear as one unit.

Is it just me (again)?
Title: Re: Scrolling Panel scaling issue
Post by: ArenMook on May 06, 2012, 08:59:06 AM
You need to scale uniformly -- that is, X, Y and Z all must have the same value. I won't get into a lengthy explanation (and my own bitchin' on the issue from 3 years ago), but this is a problem with how Unity combines its scale components.
Title: Re: Scrolling Panel scaling issue
Post by: Jason on May 06, 2012, 09:08:05 AM
I see. How strange! I wonder which Linear Algebra textbook the Unity team used ...

Thanks again!