Class EditorApplication
Inheritance
EditorApplication
Assembly: UnityEditor.dll
Syntax
public sealed class EditorApplication
Fields
|
Improve this Doc
View Source
Declaration
public static EditorApplication.SerializedPropertyCallbackFunction contextualPropertyMenu
Field Value
|
Improve this Doc
View Source
delayCall
Declaration
public static EditorApplication.CallbackFunction delayCall
Field Value
|
Improve this Doc
View Source
hierarchyWindowChanged
Declaration
[Obsolete("Use EditorApplication.hierarchyChanged")]
public static EditorApplication.CallbackFunction hierarchyWindowChanged
Field Value
|
Improve this Doc
View Source
hierarchyWindowItemOnGUI
Declaration
public static EditorApplication.HierarchyWindowItemCallback hierarchyWindowItemOnGUI
Field Value
|
Improve this Doc
View Source
modifierKeysChanged
Declaration
public static EditorApplication.CallbackFunction modifierKeysChanged
Field Value
|
Improve this Doc
View Source
playmodeStateChanged
Declaration
[Obsolete("Use EditorApplication.playModeStateChanged and/or EditorApplication.pauseStateChanged")]
public static EditorApplication.CallbackFunction playmodeStateChanged
Field Value
|
Improve this Doc
View Source
projectWindowChanged
Declaration
[Obsolete("Use EditorApplication.projectChanged")]
public static EditorApplication.CallbackFunction projectWindowChanged
Field Value
|
Improve this Doc
View Source
projectWindowItemOnGUI
Declaration
public static EditorApplication.ProjectWindowItemCallback projectWindowItemOnGUI
Field Value
|
Improve this Doc
View Source
searchChanged
Declaration
public static EditorApplication.CallbackFunction searchChanged
Field Value
|
Improve this Doc
View Source
update
Declaration
public static EditorApplication.CallbackFunction update
Field Value
Properties
applicationContentsPath
Declaration
public static string applicationContentsPath { get; }
Property Value
applicationPath
Declaration
public static string applicationPath { get; }
Property Value
|
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
|
Improve this Doc
View Source
isCompiling
Declaration
public static bool isCompiling { get; }
Property Value
isPaused
Declaration
public static bool isPaused { get; set; }
Property Value
isPlaying
Declaration
public static bool isPlaying { get; set; }
Property Value
isPlayingOrWillChangePlaymode
Declaration
public static bool isPlayingOrWillChangePlaymode { get; }
Property Value
isRemoteConnected
Declaration
public static bool isRemoteConnected { get; }
Property Value
|
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
isTemporaryProject
Declaration
public static bool isTemporaryProject { get; }
Property Value
isUpdating
Declaration
public static bool isUpdating { get; }
Property Value
scriptingRuntimeVersion
Declaration
public static ScriptingRuntimeVersion scriptingRuntimeVersion { get; }
Property Value
timeSinceStartup
Declaration
public static double timeSinceStartup { get; }
Property Value
Methods
Beep()
Declaration
public static void Beep()
|
Improve this Doc
View Source
DirtyHierarchyWindowSorting()
Declaration
public static void DirtyHierarchyWindowSorting()
Declaration
public static bool ExecuteMenuItem(string menuItemPath)
Parameters
Type |
Name |
Description |
String |
menuItemPath |
|
Returns
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
|
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
|
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
|
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
|
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
|
Improve this Doc
View Source
SaveScene()
Declaration
[Obsolete("Use EditorSceneManager.SaveScene")]
public static bool SaveScene()
Returns
|
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
|
Improve this Doc
View Source
SaveScene(String, Boolean)
Declaration
[Obsolete("Use EditorSceneManager.SaveScene")]
public static bool SaveScene(string path, bool saveAsCopy)
Parameters
Returns
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
|
Improve this Doc
View Source
pauseStateChanged
Declaration
public static event Action<PauseState> pauseStateChanged
Event Type
|
Improve this Doc
View Source
playModeStateChanged
Declaration
public static event Action<PlayModeStateChange> playModeStateChanged
Event Type
|
Improve this Doc
View Source
projectChanged
Declaration
public static event Action projectChanged
Event Type
|
Improve this Doc
View Source
quitting
Declaration
public static event Action quitting
Event Type
|
Improve this Doc
View Source
wantsToQuit
Declaration
public static event Func<bool> wantsToQuit
Event Type
Extension Methods