CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ ImportInteractive()

static void ImportInteractive ( [NotNull] Path packagePath)
static

Imports a .unitypackage file at the given path interactively.

Shows the import package dialogue to the user before importing.

Parameters
packagePathPath to file with the .unitypackage extension.
See also

Definition at line 49 of file Asset.Package.cs.

50 {
51 ThrowIf.ExtensionIsNotUnityPackage(packagePath);
52
53 AssetDatabase.ImportPackage(packagePath, true);
54 }