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 - xiaoniaojjj

Pages: 1 ... 8 9 [10]
136
NGUI 3 Support / Re: How to get the Panel pixelwidth?
« on: September 15, 2012, 02:44:10 PM »
Thanks for reply,Let explain again;
If i created a Button by NGUI,how to get the Button position(Pixel) on  Screen,you are right, in fact It's the background,  and how to get the width & height(Pixel on screen) of background of Button.  and how to change the position(pixel),
Why we need it? if i want to put the button on left&top or any position on screen,  i want to the button looks always on the left&top of screen when i resize the Screen.

137
NGUI 3 Support / Re: How to get the Panel pixelwidth?
« on: September 15, 2012, 06:41:44 AM »
Sorry for my bad expression,I mean,how to get the pixel position and pixel size of Panel or Widget on the screen, like the below code:
if(GUI.Button(new Rect(5,60,50,50),"Login hiden"))
in above code, i know the pixel Button's position and size on screen,

and how to  get the same value like GUI.Button of the NGUI widget?

138
NGUI 3 Support / How to get the pixel position and pixel size of Widget ?
« on: September 14, 2012, 10:57:00 PM »
Can I get the pixel width of the Panel object? I want control the panel position for fit the screen size.
=========================================
Thanks for reply,Let explain again;
If i created a Button by NGUI,how to get the Button position(Pixel) on  Screen,you are right, in fact It's the background,  and how to get the width & height(Pixel on screen) of background of Button.  and how to change the position(pixel),
Why we need it? if i want to put the button on left&top or any position on screen,  i want to the button looks always on the left&top of screen when i resize the Screen.

Pages: 1 ... 8 9 [10]