public void OnInput() { string cmd = devConsoleInput.text; if (string.IsNullOrEmpty(cmd)) { return; } DevConsole.Eval(cmd); //Sends command to the console if (clearOnSubmit) { devConsoleInput.text = string.Empty; } if (reselectOnSubmit) { devConsoleInput.Select(); devConsoleInput.ActivateInputField(); } }