oddgames / UIToolkit

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

Problem with xPos and yPos #84

Open rotorz opened 12 years ago

rotorz commented 12 years ago

I have tried updating UIToolkit to the master branch but am experiencing a problem.

I was changing xPos and yPos of UITextInstance's to reposition them but that doesn't appear to be working anymore.

Is this a problem or am I doing this wrong?

rotorz commented 12 years ago

Okay, I found that using pixelsFromTopLeft immediately after creating the UITextInstance / UISprite works but changing xPos, yPos (even on initialisation through constructor) seems to get completely ignored. This was working previously but not anymore.

PapaWhiskey65 commented 12 years ago

from what i can tell, creating sprites does not set anchor info, which is needed when refreshPosition is called