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.

EditorUtility.UnloadUnusedAssetsIgnoreManagedReferences

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

Description

Unloads assets that are not used, including the ones that are referenced only from scripts.

Similarly to UnloadUnusedAssets it will unload unused assets, but additionally it will also unload assets that are referenced only by the script properties or static variables. The unloaded assets will be loaded again on the first use.

See Also: Resources.UnloadUnusedAssets.