【发布时间】:2014-03-05 10:11:07
【问题描述】:
我使用 c# 脚本在 Unity 中创建了一个换装游戏,当我使用以下代码单击更改按钮时,该脚本会更改身体上的纹理:
gotexture = GameObject.Find ("Body");
Texture2D mytexture=(Texture2D) Resources.LoadAssetAtPath("Assets/characters/Female/textures/texture2.tga",typeof(Texture2D));
gotexture.renderer.material.mainTexture = mytexture;
当我统一运行项目时,此代码会更改主体上的纹理,但是当我为 Windows Phone 构建项目并运行它时,单击按钮时纹理不会更改。 在 Windows Phone 上使用时是否有任何要更改的纹理设置?纹理是 tga 文件。
【问题讨论】:
标签: c# unity3d windows-phone