Unity使用AssetBundle动态加载LoadAssetAsync方式加载Prefab时,报错Assertion failed: Assertion failed on expression: ‘Thread::CurrentThreadIsMainThread()’
根据我的测试,是因为在打包时设置BuildAssetBundleOptions.DisableWriteTypeTree
就会导致 在首次异步加载AssetBundle 或 首次使用AssetBundle加载资源 报上面的错误。