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

请问 默认只有一个defualtPackage, 异步加载的资源 调用UnloadUnusedAssets 无法从内存中释放 #451

Open
ginqingSeven opened this issue Jan 17, 2025 · 2 comments
Labels
question Further information is requested

Comments

@ginqingSeven
Copy link

请问 默认只有一个defualtPackage, 异步加载的资源 调用Handle.Release(); 后, 延迟下一秒 再次调用Package.UnloadUnusedAssets 无法从内存中释放. 加载出来的资源是个prefab 界面中引用了一些纹理图,调用上面释放接口后,发现内存中还存在纹理

@gmhevinci gmhevinci added the question Further information is requested label Feb 6, 2025
@gmhevinci
Copy link
Collaborator

资源卸载在2.2.9版本里已经修改为异步方式了。
另外资源Bundle的信息,可以在调试器里观察。

Image

@gmhevinci
Copy link
Collaborator

官方文档里有使用说明。

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