|
配置图如下:
- WWW www = new WWW("http://u3dchina.com/template/singcere_dw/common/images/logo.png");
- yield return www;
- txt2d = new Texture2D(4, 4, TextureFormat.ARGB32, false);
- www.LoadImageIntoTexture(txt2d);//Resources.LoadAssetAtPath("http://u3dchina.com/template/singcere_dw/common/images/logo.png", typeof(Texture)) as Texture;
- GameObject.Find("Game1BG").GetComponent<UITexture>().mainTexture = txt2d;
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|