Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Unity 为 Android 开发游戏,我需要从资源路径加载一些纹理。但这仅适用于编辑器,当我为 Android 构建项目时,图像不会加载。
我的代码如下所示:
public void setTipTextTexture(string texture){ texture = "TipTexts/" + texture; this.tipTexture = Resources.Load(texture) as Texture; }
我究竟做错了什么?