I am trying to have gui labels display various statistical elements.
I seem to be missing something about changing the position of these, most of them are overlapping and their position will not change. And when I was changing the position on the first ones, I had to restart Unity to see some of the updates.
Here is the scripts (the important part anyway)
var labelPos1 : Rect = Rect(10,16,100,20);
var labelPos2 : Rect = Rect(10,32,100,40);
var labelPos3 : Rect = Rect(100,16,200,20);
var labelPos4 : Rect = Rect(100,32,200,40);
var labelPos5 : Rect = Rect(10,48,100,20);
var labelPos6 : Rect = Rect(10,64,100,40);
var labelPos7 : Rect = Rect(200,48,300,20);
var labelPos8 : Rect = Rect(200,64,300,40);
function OnGUI()
{
GUI.Label(labelPos1, "Strength:" + strength);
GUI.Label(labelPos2, "Dexterity:" + dexterity);
GUI.Label(labelPos3, "Health:" + healthCurrent);
GUI.Label(labelPos4, "Stamina:" + staminaCurrent);
GUI.Label(labelPos5, "S:" + strength);
GUI.Label(labelPos6, "D:" + dexterity);
GUI.Label(labelPos7, "H:" + healthCurrent);
GUI.Label(labelPos8, "S:" + staminaCurrent);
}