Version: 2017.2
public static bool isFocused ;

説明

Whether the player currently has focus. Read-only.

In the editor, this corresponds to whether the game view has focus (regardless of whether the editor is in play mode or not).

See Also: MonoBehaviour.OnApplicationFocus.