-
Notifications
You must be signed in to change notification settings - Fork 522
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
创建panel出现图片资源missing结果 #36
Comments
大神能帮忙找找原因么 |
好绕,基本你排查下AssetBundle.Unload(true) |
我试试。应该是这样,Destroy的时候也把资源释放了还是怎样,然后再次加载就missing了。刚开始学有点问题多。。 |
我把UnloadDependencies这句调用注释掉后运行好像可以了。感觉像是一个panel对应一个资源好点。。注释掉感觉会🈶️新问题。。 |
遇到的同样的问题,看着好像是ResourceManager中assetBundle对象引用计数的问题导致assetBundle对象没有unload的情况下,依赖的资源prefab unload了 。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我的图片资源都为同一个包
步骤1:在一个主panel中打开一个次级panel,该panel会调用loadPrefab,然后Destroy该panel,再打开就会是白屏,看Inspector里显示图片sprite那里提示missing。
步骤2:在主panel中打开次级panel2,在次级panel2中打开另一个panel3同时Destroy次级panel2,又destroy另一个panel3,重复该步骤,panel3的图片资源也是missing,不知道啥原因
The text was updated successfully, but these errors were encountered: