Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: stevej on January 27, 2015, 07:59:09 PM

Title: Scale bug
Post by: stevej on January 27, 2015, 07:59:09 PM
I did try searching for this and was surprised I couldn't find anything.

I'm trying to figure out if there's a fix for the scale issue/bug where the values fall below 1 (e.g. 0.998811). I've even noticed ArenMook himself fix it once in a tutorial video by hitting the little "S" reset button to put the values back to 1.

I find myself doing it a lot while moving around in my GUI hierarchy. It seems random elements just randomly change.

Any thoughts? Or even pointers to places where this is already being discussed.
Title: Re: Scale bug
Post by: ArenMook on January 28, 2015, 02:22:29 AM
The bug is on Unity's side. When you duplicate an object or drag & drop it somewhere else in the hierarchy, Unity does some math that causes floating point values to lose a few points, likely due to precision issues related to UIRoot's small scale.