|
@@ -30,7 +30,7 @@ namespace GFGGame
|
|
|
{
|
|
|
base.OnShown();
|
|
|
Texture2D tex = this.viewData as Texture2D;
|
|
|
- byte[] bytes = tex.EncodeToJPG();//将纹理数据,转化成一个jpg图片
|
|
|
+ bytes = tex.EncodeToJPG();//将纹理数据,转化成一个jpg图片
|
|
|
_ui.m_imgRes.texture = new NTexture(tex);
|
|
|
float width = _ui.m_imgBorder.width;
|
|
|
float height = width * tex.height / tex.width;
|