using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour
{
static string killFocusName = “killFocus”;
static string text = “TEXT”;
void OnGUI()
{
GUI.SetNextControlName(killFocusName);
GUILayout.Label(“TEXT”);
GUI.changed = false;
text = GUILayout.TextField(text, GUILayout.MinWidth(40));
if (GUI.changed)
{
GUI.FocusControl(killFocusName);
Debug.Log(“focus killed ???, NO!!!”);
}
}
}