Hello im trying to make some kind of console, i’ve got an textfield and a label. The label changes it’s text so its the same as the textfield. But it needs to check for sertain words. So if i typ '“/help” the label will detect that and do something. I know how its done in visualBasic but not in Unity. Thanks (:
public string stringToEdit = "Type Here";
void OnGUI ()
{
stringToEdit = GUI.TextField(new Rect(90, 450, 200, 20), stringToEdit, 25);
GUI.Label (new Rect (90, 400, 350, 100), stringToEdit.ToString());
}