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

游离资源包问题 #436

Open
nerdt opened this issue Jan 3, 2025 · 3 comments
Open

游离资源包问题 #436

nerdt opened this issue Jan 3, 2025 · 3 comments
Labels
question Further information is requested

Comments

@nerdt
Copy link

nerdt commented Jan 3, 2025

构建的时候发现存在引用问题,例如:
主资源 a.prefab 引用了 b.pngb.png是被DependAssetCollector收集的。
打包后分别生成出 a.bundleb.bundle
构建报告里显示 a.prefab中的DependAssets是包含b.png的,但是manifest文件里 a.bundle却没有引用b.bundle
同时构建时会有Found stray bundle ! Bundle ID : b.bundle的警告,看源码注释写着
注意:SBP构建管线会自动剔除一些冗余资源的引用关系,导致游离资源包没有被任何主资源包引用。
请问这个有什么解决办法吗?

@gmhevinci gmhevinci added the question Further information is requested label Jan 4, 2025
@gmhevinci
Copy link
Collaborator

这个问题主要发生在精灵图片多一些。该问题不会造成严重的性能问题。游离资源包并且也不会被玩家下载到本地。

@nerdt
Copy link
Author

nerdt commented Jan 4, 2025

感谢回复,倒不是有性能问题,主要是这个引用丢失了,导致a.prefab加载后里面的b.png资源是missing的。

@gmhevinci
Copy link
Collaborator

感谢回复,倒不是有性能问题,主要是这个引用丢失了,导致a.prefab加载后里面的b.png资源是missing的。

这个可能是另外问题引起的,如果稳定复现,可以用太空战机DEMO复现发给我。可以再QQ群里找到我。

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

No branches or pull requests

2 participants