Not Works GUI.FocusControl

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!!!”);
}
}
}

SetNextControlName sets the name of the NEXT control. You are putting it before a label, which cannot receive your focus.

Try moving SetNextControlName down just before the GUILayout.TextField line.