ok i was following a tutorial, everything has worked as required except i cannot move the gui texture up and down , i can only move it left and right i know it’s this section that controls it’s position , but i’m not sure one what to type to control the up and down too
function OnGUI () {
if (curHp > 0)
{
GUI.DrawTexture(new Rect((Screen.width/2) - 100, 50, hpBarLength, 15), HpBarTexture);
}
}