Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

EditorApplication.isUpdating

static var isUpdating: bool;
static bool isUpdating;
static isUpdating as bool

Description

Is editor currently updating? (Read Only)

	// Simple editor Script that lets you create a new scene if editor is nmot updating.
	
	import UnityEditor;
	
	@MenuItem("Example/New Scene while not updating")
	static function EditorPlaying() {
		if(!EditorApplication.isUpdating) {
			EditorApplication.NewScene();
		}
	}