Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorWindow.FocusWindowIfItsOpen

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

Parameters

tThe 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

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