Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: alexh0101 on March 04, 2015, 02:22:56 PM

Title: Weird behavior of ScrollView at Start() when contained in object of scale zero
Post by: alexh0101 on March 04, 2015, 02:22:56 PM
I have a draggable scroll view, with a grid and items generated at Start().

I want this scroll view to be contained in an object with a scale of (0,0,0), and then this object will get bigger later.

The problem is that, when I enlarge the parent object after Start(), the Unity2Dsprite's that are in every item of the grid are not displayed. Also the scroll view is not placed at the defined position.

However, when I change the scale of the parent object to (0.001, 0.001, 0.001), everything works perfectly.

So what is the difference between (0,0,0) and (0.001, 0.001, 0.001)?
Is the misplacement of the Scroll View a bug or is it supposed to be that way?

Thanks for your help.
Title: Re: Weird behavior of ScrollView at Start() when contained in object of scale zero
Post by: ArenMook on March 05, 2015, 10:00:04 PM
Zero scale is invalid. You can't divide by zero, so inverse transform can't be calculated.