跳到主要内容

Class EditorWindow

Provides additional functionality base on global::UnityEditor.EditorWindow.

Properties

undoSystem

Undo stack of this winS.UnityEditor.EditorWindow.

public UndoSystem undoSystem { get; }

editorModeOnly

Is only used in editor mode?

protected virtual bool editorModeOnly { get; }

responseSaveCommand

Response save command (Ctrl+S)?

protected virtual bool responseSaveCommand { get; }

saveNotification

Notification shown when window saved.

protected virtual string saveNotification { get; }

Methods

SaveWindow()

Save the editor window.

public virtual void SaveWindow()

OnCreated()

Called when window created (Use this method instead of OnEnable).

protected virtual void OnCreated()

OnClosed()

Called when window closed (Use this method instead of OnDisable).

protected virtual void OnClosed()

OnSaved()

Called when window saved.

protected virtual bool OnSaved()

ShowNotification(string message, [float duration = 2])

protected void ShowNotification(string message, [float duration = 2])

AddItemsToMenu(GenericMenu genericMenu)

protected virtual void AddItemsToMenu(GenericMenu genericMenu)