Application.isFocused

public static bool isFocused;

Description

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).

Additional resources: MonoBehaviour.OnApplicationFocus.


Did you find this page useful? Please give it a rating: