oddgames / UIToolkit

Single draw call UI solution for Unity with multi resolution support and more.
518 stars 153 forks source link

positioning routines dont respect scale #120

Open PapaWhiskey65 opened 12 years ago

PapaWhiskey65 commented 12 years ago

make a background container add items, scrollers, sprites, buttons doesnt matter change the scale of the container most items will not be positioned correctly will debug it when i can,

PapaWhiskey65 commented 12 years ago

turns out if you add the items as children BEFORE positioning, and then set scale (not localScale) on the master container, along with uncommenting the lines in UIObject.cs to apply clientTransform.localScale to width/height you get scaled sprites that respect positioning

eintopf commented 11 years ago

Same problem here - could you tell the lines you which lines you edited?