I know there are tons of threads on here about making a gui but none of them seem to be working for me. I am trying to use a GUI.Label and make a "PlayerHealth" variable visible to the player as a number, not a healthbar. i.e. it shows 100 when at max and you get hit it falls down to 94. Is there any way to link a interger variable into a GUI.Label script?
but the console says "Cannot convert integer into String".
Now what?
Yeah sorry about that, I guess you do need to do to convert PlayerHealthDisplay into a string. Just try: guiText.text = PlayerHealthDisplay.ToString();
Yeah sorry about that, I guess you do need to do to convert PlayerHealthDisplay into a string. Just try: guiText.text = PlayerHealthDisplay.ToString();
– Thom_Denick