public void SvaeIamgeToLocal(Texture2D texture) { byte[] bytes = NativeGallery.GetTextureBytes(texture, false); Debug.Log("开始储存图片... Path:" + LoaclTexturePath); File.WriteAllBytes(LoaclTexturePath, bytes); }
public void SvaeIamgeToLocal(Texture2D texture) { byte[] bytes = NativeGallery.GetTextureBytes(texture, false); Debug.Log("开始储存图片... Path:" + LoaclTexturePath); File.WriteAllBytes(LoaclTexturePath, bytes); }