I want to create a GUI with GUIText and GUITexture. I created a simple pad in photoshop and made it to a GUITexture. Now I want to chane its width by code, it has to get the width of the screen. I also want to place GUIText always 5 Pixel left from the roght upper corner.
You could also just create buttons and windows to your liking with each texture and then independently render them on GUI. You actually get a much better look to your GUI if you do things this way. You don't need Skins.
First in your scene create an empty game object, then attach this script to it..