- Home /
Unity Import Package window button callbacks?
Hello, I am making a plugin for unity and i need to know if the user click import or cancel when they have selected a unity package to be imported.
I use this
  AssetDatabase.ImportPackage(path,true); 
It opens a popup but doesn't have any callbacks regarding if the user actually imported the package.
My problem is that the following method from asset post processor is being called before i actually import the files. Its called when the popup is opened.
 private static void OnPostprocessAllAssets (string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) 
         {
Any ideas if there is a callback?
Your answer
 
 
             Follow this Question
Related Questions
EditorWindow not working when defined in .net/mono Assembly. 2 Answers
EditorWindow loses Texture2D reference on scene change: how to handle? 4 Answers
Thumbnails from assets in an EditorWindow 0 Answers
Filtering project window to ONLY selected objects 0 Answers
PrefabUtility - Check if Changes have been made to Prefab? 3 Answers
