Преглед изворни кода

相册在分享出保存到本地报错

zhaoyang пре 2 година
родитељ
комит
32e8cfd072
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      GameClient/Assets/Game/HotUpdate/ServerProxy/PictureStorageHelper.cs

+ 1 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/PictureStorageHelper.cs

@@ -135,6 +135,7 @@ namespace GFGGame
                 {
                     Texture2D texture = (request.downloadHandler as DownloadHandlerTexture).texture;
                     data.Ntexture = new NTexture(texture);
+                    data.Bytes = texture.EncodeToJPG();
                 }
             }
         }