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.

AssetDatabase.Refresh

static function Refresh(options: ImportAssetOptions = ImportAssetOptions.Default): void;
static void Refresh(ImportAssetOptions options = ImportAssetOptions.Default);
static def Refresh(options as ImportAssetOptions = ImportAssetOptions.Default) as void

Description

Import any changed assets.

This will import any assets that have changed their content modification data or have been added-removed to the project folder.

This method implicitly triggers an asset garbage collection (see Resources.UnloadUnusedAssets).

See Also: ImportAssetOptions.