CodeSmile AssetDatabase 1.10
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 60 of file Asset.Package.cs.

61 {
62 ThrowIf.ExtensionIsNotUnityPackage(packagePath);
63
64#if UNITY_6000_6_OR_NEWER
65 UnityEditor.AssetPackage.Package.Import(packagePath, interactive: true);
66#else
67 AssetDatabase.ImportPackage(packagePath, true);
68#endif
69 }