More specifically , a snippet of code I use to show a battery for a flashlight. It works perfectly how it is, however it uses the old GUI system and I want to keep everything updated. It is
//Display current battery on your flashlight
function OnGUI () {
GUI.Label (Rect(70, Screen.height/rectHeight - 75,150,60), "Battery: " + energy.ToString("F0") + "%");
}
So how would I make this into the new ui ? Sorry im more of a edit code kinda person, I understand it but I have no idea what ANY of the new ui is code wis .