Author Topic: 0 to 0.999999 float precision for Transform scaling in NGUI  (Read 1408 times)

tripknotix

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
0 to 0.999999 float precision for Transform scaling in NGUI
« on: November 20, 2014, 05:08:37 PM »
I noticed a lot of ngui objects are having their scales set to 0.999999, is there anyway you could put a check if a float is 0 to handle it differently by the time it gets to setting the scale itself, this seems to occur atleast once a week, its not a big deal. But it would be great if it didnt happen at all.

Thank you

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 0 to 0.999999 float precision for Transform scaling in NGUI
« Reply #1 on: November 20, 2014, 09:20:41 PM »
This happens only when you duplicate NGUI widgets using Unity. It's a Unity issue, not NGUI. Just click the "S" button in the transform inspector to reset it.