EditorWindow.FocusWindowIfItsOpen
static function FocusWindowIfItsOpen(t: Type): void;
static void FocusWindowIfItsOpen(Type t);
static def FocusWindowIfItsOpen(t as Type) as void
Parameters

t The type of the window. Must derive from EditorWindow.
Description

Focuses the first found EditorWindow of specified type if it is open.

If there is no open window of such type, nothing happens.
static function FocusWindowIfItsOpen(): void;
static void FocusWindowIfItsOpen();
static def FocusWindowIfItsOpen() as void
Parameters

T The type of the window. Must derive from EditorWindow.
Description

Focuses the first found EditorWindow of type T if it is open.

If there is no open window of such type, nothing happens.