Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

AssetDatabase.ImportPackageCallback

public delegate void ImportPackageCallback(string packageName);

Description

Delegate to be called from AssetDatabase.ImportPackage callbacks. packageName is the name of the package that raised the callback.

ImportPackageCallback is used by AssetDatabase.importPackageStarted, AssetDatabase.importPackageCompleted, and AssetDatabase.importPackageCancelled.