I have a script that builds an asset bundle using BuildPipeline.BuildStreamedSceneAssetBundle(). After which the editor reloads all of the assemblies, which in turn invalidates the script context of my running script. I've tried calling EditorApplication.LockReloadAssemblies() when first displaying my script UI (in my Init()/ShowWindow() method) and I thought it worked yesterday, but when running the script again this morning the editor reloaded all of the assemblies after the asset bundle was built.
Is anyone aware of something I'm missing or a reason why building an asset bundle would override the EditorApplication setting?
↧