Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

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

EditorApplication

Namespace: UnityEditor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Main Application class.

Static Variables

applicationContentsPath Path to the Unity editor contents folder. (Read Only)
applicationPath Returns the path to the Unity editor application. (Read Only)
currentScene The path of the scene that the user has currently open (Will be an empty string if no scene is currently open). (Read Only)
hierarchyWindowChanged Each time an object is (or a group of objects are) created, renamed, parented, unparented or destroyed this callback is raised.
hierarchyWindowItemOnGUI Delegate for OnGUI events for every visible list item in the HierarchyWindow.
isCompiling Is editor currently compiling scripts? (Read Only)
isPaused Is editor currently paused?
isPlaying Is editor currently in play mode?
isPlayingOrWillChangePlaymode Is editor either currently in play mode, or about to switch to it? (Read Only)
isUpdating Is editor currently updating? (Read Only)
modifierKeysChanged Delegate for changed keyboard modifier keys.
playmodeStateChanged Delegate for play mode state changes.
projectWindowChanged Callback raised whenever the state of the Project window changes.
projectWindowItemOnGUI Delegate for OnGUI events for every visible list item in the ProjectWindow.
searchChanged Callback raised whenever the contents of a window's search box are changed.
timeSinceStartup The time since the editor was started. (Read Only)
update Delegate for generic updates.

Static Functions

Beep Plays system beep sound.
DirtyHierarchyWindowSorting Set the hierarchy sorting method as dirty.
ExecuteMenuItem Invokes the menu item in the specified path.
Exit Exit the Unity editor application.
LockReloadAssemblies Prevents loading of assemblies when it is inconvenient.
NewScene Create a new scene.
OpenProject Open another project.
OpenScene Opens the scene at path.
OpenSceneAdditive Opens the scene at path additively.
RepaintHierarchyWindow Can be used to ensure repaint of the HierarchyWindow.
RepaintProjectWindow Can be used to ensure repaint of the ProjectWindow.
SaveAssets Saves all serializable assets that have not yet been written to disk (eg. Materials).
SaveCurrentSceneIfUserWantsTo Ask the user if he wants to save the open scene.
SaveScene Save the open scene.
Step Perform a single frame step.
UnlockReloadAssemblies Must be called after LockReloadAssemblies, to reenable loading of assemblies.