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.LockReloadAssemblies

static function LockReloadAssemblies(): void;
static void LockReloadAssemblies();
static def LockReloadAssemblies() as void

Description

Prevents loading of assemblies when it is inconvenient.

For example during drag operations you might want to prevent assembly reloading to not lose state during the drag. Each LockReloadAssemblies must be matched by UnlockReloadAssemblies, otherwise scripts will never unload. Unity automatically prevents reloading during mouse down.

See Also: EditorApplication.UnlockReloadAssemblies.