Environment reset after plugin import kill all static variables.
Hey I'm trying to realize installer with settings in Editor for my own plugin. It should ask user about required parts of my plugin, download some zip and unitypackage files and import them to a project. To download files and notify users about downloading progress I use EditorCoroutineRunner. All work fine until I call import package method.
AssetDatabase.ImportPackage("package_full_name", false);
There are no problems with first package from a packages list. But after first installation something happens. Coroutines are stopped. After some research I found that something like environment reset happens after importing first package. All static variables are reset. And this is a source of my problem.
Of course, I can save my packages list before first import and check it in InitializeOnLoad, but it seems some tricky. Is there any way to disable this "environment reset" after plugin import?