EditorApplication Class  

Scripting > Editor Classes > EditorApplication

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

Class Variables
currentScene

The path of the scene that the user has currently open.

isPlaying

applicationContentsPath

Class Functions
NewScene

Create a new scene

OpenScene

Opens the scene at path.

OpenSceneAdditive

Opens the scene at path additively.

SaveScene

Save the scene at path.

SaveCurrentSceneIfUserWantsTo

Ask the user if he wants to save the open scene.

SaveAssets

Saves all serializable assets that have not yet been written to disk (eg. Materials)