unityGLTF插件加载模型很慢的问题

在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;
            }
        }

 


把IsMultithreaded赋值为false即可
posted @ 2024-12-11 16:55  zerozabuu  阅读(17)  评论(0编辑  收藏  举报