Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

场景的DependentAsset加载优化建议 #74

Open
zhuxingwei opened this issue Jun 24, 2024 · 0 comments
Open

场景的DependentAsset加载优化建议 #74

zhuxingwei opened this issue Jun 24, 2024 · 0 comments

Comments

@zhuxingwei
Copy link

我们项目中遇到一个情况:当从Bundle中加载一个Scene的时候,如果这个Scene依赖了很多别的Bundle中的资源,那么Scene的加载时间会变长很多(相比较于这些被依赖的资源与Scene打包在一起的情况)。

看代码我们发现,框架在加载一个Scene所以来的其他Asset时,除了加载对应的Bundle外,还会使用AssetBundle.LoadAssetAsync方法把对应的Asset也加载到C#端。这个看起来是没有必要的吧?

理论上只要Bundle加载好后,那么Unity就可以在加载时从中找到以来的资产,而不必要我们业务端在显示将它加载出来?还是说框架这边有什么特殊的需求?

多谢E大!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant