Positioning Gameobject that contain GUI

Hi Guys,

This is my first project, http://testeunity.mariojmcarvalho.com/, i’m going to change the buttons and others thing, but will be more or less this.

Now,
i want to position the game object that contains my GUY (GameObjects with GUI_Tex component),
to be x, screen.width - 200 and y, screen.height -400,
i try somethings but without success.

Can someone help me? Thanks :wink:

That is what PixelOffset is for. Why not use OnGUI ?

I don’t quite understand exactly what you want but you should use a GUISkin.
Add this to your code:
var skin : GUISkin;

function OnGUI(){
GUI.skin = skin;
GUI.Box(Rect (Screen.width - 100,0,100,50), “”);
}

This will display an empty box at the top right of any screen.
Go to your New GUI Skin and under box, change the background to a texture in your project files.
Remember to set the texture’s Texture Type as a GUI. Hope this helped you.