Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - memorygarden

Pages: [1]
1
NGUI 3 Documentation / Re: UILabel
« on: December 08, 2013, 02:31:45 AM »
Multiply? The localSize I saw in the sense was about 240. after multiply the value will be 400+. It's not correct . oh my god . Please help me . Thank you .

2
NGUI 3 Documentation / Re: UILabel
« on: December 07, 2013, 04:38:05 AM »
first,thank you for your reply.

but now the result is also looks like incorrect;

i dit as follows:


UILabel ul = goo.GetComponent<UILabel>();
         
Debug.Log(UIRoot.GetPixelSizeAdjustment(goo));
Debug.Log (ul.printedSize);
Debug.Log(new Vector2(ul.printedSize.x/UIRoot.GetPixelSizeAdjustment(goo),
            ul.printedSize.y/UIRoot.GetPixelSizeAdjustment(goo)));


Console out:

2.416107
(490.0, 20.0)
(202.8, 8.3)



i think the label's printSize in sense is bigger than (202.8, 8.3)

did i made some mistakes?


thank you

3
NGUI 3 Documentation / Re: UILabel
« on: December 07, 2013, 02:25:07 AM »
HI , label.printedSize is not correct? i think the label.printedSize is not the size on sense?

i have some labels in a list , and a background, how could i know the background's localSize?

thank you!

Pages: [1]