Legacy Documentation: Version 2018.1 (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.

Did you find this page useful? Please give it a rating: