How to position a GUI Texture

I thought this woud be rather straightforward, but alas it’s not. Here’s what I did:

Create a GUITexture and assign it a 64x64 texture
Move the transform to 0,0,0 with a scale of 0,0,1 (cause that’s what I’ve seen other people do)

Now I would think that if I set Pixe Inset X and Pixel Inset Y to 0,0 I would see the texture in the bottom left of the screen. Guess what, I don’t. I actually have to set Pixel Inset X to over 500 for some unexplained reason.

Can someone explain to me what I’m doing wrong?

My Pixel insert values are 575,150,64,64
My Border values are 0,0,0,0

That will work if you get rid of all the pixel inset values, and set the x/y scale to something greater than 0. That way it will also be resolution-independent.

–Eric

Sorry, but I have no idea what you just said :frowning:

I’m on the iPhone so I really don’t care about resolution independence since there is only 1. I just want to say "place this GUITexture at 0,0 with a width and height of 64,64. Am I supposed to use pixel inset values to position the texture or am I way off base here?

From what I’ve been messing around with, the pixel inset values 0,0 refer to the upper top left area of the viewable screen. The second height and width values refer to the area drawn from the starting co-ordinates. I think. It depends if the iphone treats width and height differently, it could be different since the iphone is a portrait style of display. Only got a PC license so not sure how the iphone treats it’s display.