기술 자료

Unity Engine

Unity Engine

FocusWindowIfItsOpen

Focuses the first found EditorWindow of specified type if it is open.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

FocusWindowIfItsOpen(Type)

Focuses the first found EditorWindow of specified type if it is open.
public static void FocusWindowIfItsOpen(Type t)

Parameters

Remarks

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

FocusWindowIfItsOpen<T>()

Focuses the first found EditorWindow of type T if it is open.
public static void FocusWindowIfItsOpen<T>() where T : EditorWindow

Remarks

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