- Home /
Question by
AusAndrew19 · Aug 29, 2012 at 07:56 PM ·
guiguitexture
How to make GUI Texture Stay Where i want it.
Question Abandoned.. too Complicated for my skill level.
Comment
if your actually using the gui texture a good little workaround is changing the pixel inset to 0 for everything and setting the scale via the transform
Best Answer
Answer by Eric5h5 · Aug 31, 2012 at 01:55 AM
GUITextures use viewport space; (0, 0) for the x/y coords is always bottom-left and (1, 1) is always top-right regardless of resolution.
Answer by Piflik · Aug 29, 2012 at 08:03 PM
You can use Screen.width and Screen.height to place GUI elements independently of the resolution.
Example:
GUI.DrawTexture(Rect(Screen.width/2, Screen.height/2, 50, 50), Crosshair);
Your answer
![](https://koobas.hobune.stream/wayback/20220613080350im_/https://answers.unity.com/themes/thub/images/avi.jpg)