Hi,
I am new to unity and would like to know 2 things.
- Where can I find a series of tutorials that will help me strengthen my basics?
- I am trying to display a GUI on screen but it is not happening
dont I have rect and GUI API’s ? If so how do I install them?
the code is
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
public int maxHealth=100;
public int currHealth=100;
void Start () {
}
void Update () {
}
void onGUI()
{
GUI.Box(new Rect(10,10,Screen.width/2,20),currHealth + "/" + maxHealth);
}
}
there is no error… just no display…
should I use a texture?
i also dragged it to the first person controller! no use!
thanks in advance