OK this is driving me nuts!! I tried followint this tutorial but every time my cross hair for my gun keeps showing up in the upper left hand corner of the screen, what am I missing??
var crosshairTexture : Texture2D; var position : Rect; function Start() { position = Rect( ( Screen.width - crosshairTexture.width ) / 2, ( Screen.height - crosshairTexture.height ) / 2, crosshairTexture.width, crosshairTexture.height ); } function OnGUI() { GUI.DrawTexture( position, crosshairTexture ); }