SOLVED:Centering a gui texture

I have a gui texture object which I want to center in the middle of the screen how do i do this?

New Rect ( (Screen.width / 2) - width, (Screen.height / 2) - height, width, height );

i don’t understand

is that for the new GUI because I’m using the old GUI (GUITTexture object)

Ah, my apologies for misunderstanding. I’m not quite sure about that one. My line above was for placing a GUI element in the dead center, but that’s different than your case.

Not to worry, it is fixed now :smile: