- Home /
EditorUserBuildSettings.SwitchActiveBuildTarget causing reimport error on otf font
The asset at ***.otf has been scheduled for reimport during the Refresh loop and Loading of it has been attempted.
Doing this can lead to the AssetDatabase returning two versions of the same asset.
Please ensure that code which attempts to reimport this asset does not run while the editor is Refreshing.
You can do so by checking the value of EditorApplication.isUpdating
But I am checking, here is the full code using async on a MenuItem: https://gist.github.com/badjano/28d58c2be0ccc3099299991d651e901e
tried the best I could to figure this one out.
Comment