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.ImportPackage

static function ImportPackage(packagePath: string, interactive: bool): void;
static void ImportPackage(string packagePath, bool interactive);
static def ImportPackage(packagePath as string, interactive as bool) as void

Description

Imports package at packagePath into the current project.

If interactive is true, an import package dialog will be opened, else all assets in the package will be imported into the current project.