There is a quick and dirty appreoch to creating text boxes:
void OnGUI(){
GUILayout.Label("Text 1");
}
It works well. But, since the Label method returns void
, how do I access this later on?
Let's say I want to access the text later to change the score?
someField = GUILayout.Label("Text 1");
Is not going to work.