Show / Hide Table of Contents

Class EditorApplication

Inheritance
Object
EditorApplication
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor
Assembly: UnityEditor.dll
Syntax
public sealed class EditorApplication

Fields

| Improve this Doc View Source

contextualPropertyMenu

Declaration
public static EditorApplication.SerializedPropertyCallbackFunction contextualPropertyMenu
Field Value
Type Description
EditorApplication.SerializedPropertyCallbackFunction
| Improve this Doc View Source

delayCall

Declaration
public static EditorApplication.CallbackFunction delayCall
Field Value
Type Description
EditorApplication.CallbackFunction
| Improve this Doc View Source

hierarchyWindowChanged

Declaration
[Obsolete("Use EditorApplication.hierarchyChanged")]
public static EditorApplication.CallbackFunction hierarchyWindowChanged
Field Value
Type Description
EditorApplication.CallbackFunction
| Improve this Doc View Source

hierarchyWindowItemOnGUI

Declaration
public static EditorApplication.HierarchyWindowItemCallback hierarchyWindowItemOnGUI
Field Value
Type Description
EditorApplication.HierarchyWindowItemCallback
| Improve this Doc View Source

modifierKeysChanged

Declaration
public static EditorApplication.CallbackFunction modifierKeysChanged
Field Value
Type Description
EditorApplication.CallbackFunction
| Improve this Doc View Source

playmodeStateChanged

Declaration
[Obsolete("Use EditorApplication.playModeStateChanged and/or EditorApplication.pauseStateChanged")]
public static EditorApplication.CallbackFunction playmodeStateChanged
Field Value
Type Description
EditorApplication.CallbackFunction
| Improve this Doc View Source

projectWindowChanged

Declaration
[Obsolete("Use EditorApplication.projectChanged")]
public static EditorApplication.CallbackFunction projectWindowChanged
Field Value
Type Description
EditorApplication.CallbackFunction
| Improve this Doc View Source

projectWindowItemOnGUI

Declaration
public static EditorApplication.ProjectWindowItemCallback projectWindowItemOnGUI
Field Value
Type Description
EditorApplication.ProjectWindowItemCallback
| Improve this Doc View Source

searchChanged

Declaration
public static EditorApplication.CallbackFunction searchChanged
Field Value
Type Description
EditorApplication.CallbackFunction
| Improve this Doc View Source

update

Declaration
public static EditorApplication.CallbackFunction update
Field Value
Type Description
EditorApplication.CallbackFunction

Properties

applicationContentsPath

Declaration
public static string applicationContentsPath { get; }
Property Value
Type Description
String

applicationPath

Declaration
public static string applicationPath { get; }
Property Value
Type Description
String
| Improve this Doc View Source

currentScene

Declaration
[Obsolete("Use EditorSceneManager to see which scenes are currently loaded")]
public static string currentScene { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

isCompiling

Declaration
public static bool isCompiling { get; }
Property Value
Type Description
Boolean

isPaused

Declaration
public static bool isPaused { get; set; }
Property Value
Type Description
Boolean

isPlaying

Declaration
public static bool isPlaying { get; set; }
Property Value
Type Description
Boolean

isPlayingOrWillChangePlaymode

Declaration
public static bool isPlayingOrWillChangePlaymode { get; }
Property Value
Type Description
Boolean

isRemoteConnected

Declaration
public static bool isRemoteConnected { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

isSceneDirty

Declaration
[Obsolete("Use Scene.isDirty instead. Use EditorSceneManager.GetScene API to get each open scene")]
public static bool isSceneDirty { get; }
Property Value
Type Description
Boolean

isTemporaryProject

Declaration
public static bool isTemporaryProject { get; }
Property Value
Type Description
Boolean

isUpdating

Declaration
public static bool isUpdating { get; }
Property Value
Type Description
Boolean

scriptingRuntimeVersion

Declaration
public static ScriptingRuntimeVersion scriptingRuntimeVersion { get; }
Property Value
Type Description
ScriptingRuntimeVersion

timeSinceStartup

Declaration
public static double timeSinceStartup { get; }
Property Value
Type Description
Double

Methods

Beep()

Declaration
public static void Beep()
| Improve this Doc View Source

DirtyHierarchyWindowSorting()

Declaration
public static void DirtyHierarchyWindowSorting()

ExecuteMenuItem(String)

Declaration
public static bool ExecuteMenuItem(string menuItemPath)
Parameters
Type Name Description
String menuItemPath
Returns
Type Description
Boolean

Exit(Int32)

Declaration
public static void Exit(int returnValue)
Parameters
Type Name Description
Int32 returnValue
| Improve this Doc View Source

LoadLevelAdditiveAsyncInPlayMode(String)

Declaration
[Obsolete("Use EditorSceneManager.LoadSceneAsyncInPlayMode instead.")]
public static AsyncOperation LoadLevelAdditiveAsyncInPlayMode(string path)
Parameters
Type Name Description
String path
Returns
Type Description
AsyncOperation
| Improve this Doc View Source

LoadLevelAdditiveInPlayMode(String)

Declaration
[Obsolete("Use EditorSceneManager.LoadSceneInPlayMode instead.")]
public static void LoadLevelAdditiveInPlayMode(string path)
Parameters
Type Name Description
String path
| Improve this Doc View Source

LoadLevelAsyncInPlayMode(String)

Declaration
[Obsolete("Use EditorSceneManager.LoadSceneAsyncInPlayMode instead.")]
public static AsyncOperation LoadLevelAsyncInPlayMode(string path)
Parameters
Type Name Description
String path
Returns
Type Description
AsyncOperation
| Improve this Doc View Source

LoadLevelInPlayMode(String)

Declaration
[Obsolete("Use EditorSceneManager.LoadSceneInPlayMode instead.")]
public static void LoadLevelInPlayMode(string path)
Parameters
Type Name Description
String path

LockReloadAssemblies()

Declaration
public static void LockReloadAssemblies()
| Improve this Doc View Source

MarkSceneDirty()

Declaration
[Obsolete("Use EditorSceneManager.MarkSceneDirty or EditorSceneManager.MarkAllScenesDirty")]
public static void MarkSceneDirty()
| Improve this Doc View Source

NewEmptyScene()

Declaration
[Obsolete("Use EditorSceneManager.NewScene (NewSceneSetup.EmptyScene)")]
public static void NewEmptyScene()
| Improve this Doc View Source

NewScene()

Declaration
[Obsolete("Use EditorSceneManager.NewScene (NewSceneSetup.DefaultGameObjects)")]
public static void NewScene()
| Improve this Doc View Source

OpenProject(String, String[])

Declaration
public static void OpenProject(string projectPath, params string[] args)
Parameters
Type Name Description
String projectPath
String[] args
| Improve this Doc View Source

OpenScene(String)

Declaration
[Obsolete("Use EditorSceneManager.OpenScene")]
public static bool OpenScene(string path)
Parameters
Type Name Description
String path
Returns
Type Description
Boolean
| Improve this Doc View Source

OpenSceneAdditive(String)

Declaration
[Obsolete("Use EditorSceneManager.OpenScene")]
public static void OpenSceneAdditive(string path)
Parameters
Type Name Description
String path
| Improve this Doc View Source

QueuePlayerLoopUpdate()

Declaration
public static void QueuePlayerLoopUpdate()
| Improve this Doc View Source

RepaintAnimationWindow()

Declaration
public static void RepaintAnimationWindow()
| Improve this Doc View Source

RepaintHierarchyWindow()

Declaration
public static void RepaintHierarchyWindow()
| Improve this Doc View Source

RepaintProjectWindow()

Declaration
public static void RepaintProjectWindow()

SaveAssets()

Declaration
[Obsolete("Use AssetDatabase.SaveAssets instead (UnityUpgradable) -> AssetDatabase.SaveAssets()", true)]
public static void SaveAssets()
| Improve this Doc View Source

SaveCurrentSceneIfUserWantsTo()

Declaration
[Obsolete("Use EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo")]
public static bool SaveCurrentSceneIfUserWantsTo()
Returns
Type Description
Boolean
| Improve this Doc View Source

SaveScene()

Declaration
[Obsolete("Use EditorSceneManager.SaveScene")]
public static bool SaveScene()
Returns
Type Description
Boolean
| Improve this Doc View Source

SaveScene(String)

Declaration
[Obsolete("Use EditorSceneManager.SaveScene")]
public static bool SaveScene(string path)
Parameters
Type Name Description
String path
Returns
Type Description
Boolean
| Improve this Doc View Source

SaveScene(String, Boolean)

Declaration
[Obsolete("Use EditorSceneManager.SaveScene")]
public static bool SaveScene(string path, bool saveAsCopy)
Parameters
Type Name Description
String path
Boolean saveAsCopy
Returns
Type Description
Boolean

SetTemporaryProjectKeepPath(String)

Declaration
public static void SetTemporaryProjectKeepPath(string path)
Parameters
Type Name Description
String path

Step()

Declaration
public static void Step()

UnlockReloadAssemblies()

Declaration
public static void UnlockReloadAssemblies()

Events

| Improve this Doc View Source

hierarchyChanged

Declaration
public static event Action hierarchyChanged
Event Type
Type Description
Action
| Improve this Doc View Source

pauseStateChanged

Declaration
public static event Action<PauseState> pauseStateChanged
Event Type
Type Description
Action<PauseState>
| Improve this Doc View Source

playModeStateChanged

Declaration
public static event Action<PlayModeStateChange> playModeStateChanged
Event Type
Type Description
Action<PlayModeStateChange>
| Improve this Doc View Source

projectChanged

Declaration
public static event Action projectChanged
Event Type
Type Description
Action
| Improve this Doc View Source

quitting

Declaration
public static event Action quitting
Event Type
Type Description
Action
| Improve this Doc View Source

wantsToQuit

Declaration
public static event Func<bool> wantsToQuit
Event Type
Type Description
Func<Boolean>

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX