FocusWindowIfItsOpen
Focuses the first found EditorWindow of specified type if it is open.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
FocusWindowIfItsOpen(Type)
Focuses the first found EditorWindow of specified type if it is open.
public static void FocusWindowIfItsOpen(Type t)
Parameters
The type of the window. Must derive from EditorWindow.
Remarks
If there is no open window of such type, nothing happens.
FocusWindowIfItsOpen<T>()
Focuses the first found EditorWindow of type if it is open.
Tpublic static void FocusWindowIfItsOpen<T>() where T : EditorWindow
Remarks
If there is no open window of such type, nothing happens.