Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

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

AssetDatabase.ImportPackageFailedCallback

public delegate void ImportPackageFailedCallback(string packageName, string errorMessage);

Description

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

ImportPackageCallback is used by AssetDatabase.importPackageFailed.