Same as selecting Assets menu, Import Package…
I want to be able to do in script.
So far I can Open a standard dialog, to find the .unitypackage file, but I don’t know how to import the package?
var path = EditorUtility.OpenFilePanel("Import package...", Application.dataPath, "unitypackage");
Any help greatly appreciated, so far all I can find is info on importing single assets?