在unity编辑器里面加载很快,但是发布成windows版本,加载就很慢
排查原因是开启了多线程加载(编辑器环境多线程加载始终关闭反而更快):
打开文件 GLTFSceneImporter.cs
/// <summary> /// Use Multithreading or not. /// In editor, this is always false. This is to prevent a freeze in editor (noticed in Unity versions 2017.x and 2018.x) /// </summary> public bool IsMultithreaded { get { return Application.isEditor ? false : _isMultithreaded; } set { _isMultithreaded = value; } }
标签:插件,false,IsMultithreaded,unityGLTF,很慢,多线程,加载 From: https://www.cnblogs.com/zerozabuu/p/18599989
把IsMultithreaded赋值为false即可