解决方法:
1、选中图片:Inspector窗口下第一个选项,Texture Type 改成 Advanced;
2、选中Read/Write Enabled。
3、选中下方Override for Standalone,Format这图片ARGB 32bit
4、点击Apply。
5、运行代码,应该没问题了。
Texture ‘XXX‘ is not readable, the memory can not be accessed form scripts, You can make the texture
最新推荐文章于 2024-10-26 09:00:00 发布
本文提供了一种在Unity中解决图片加载问题的方法。具体步骤包括:1. 在Inspector窗口将图片的TextureType设置为Advanced。2. 启用Read/WriteEnabled选项。3. 选择OverrideforStandalone并设置Format为ARGB32bit。4. 应用更改后,运行代码即可解决问题。
5328

被折叠的 条评论
为什么被折叠?



