[fix] Fixed Download interface caused the iOS platform to fail to build

This commit is contained in:
monitor1394
2022-10-13 07:52:47 +08:00
parent e1f20e0796
commit 53610b53ca
2 changed files with 3 additions and 0 deletions

View File

@@ -59,6 +59,7 @@
## master
* (2022.10.13) 修复`Download`的接口造成`iOS`平台打包失败的问题
* (2022.10.12) 增加`Animation``UnscaledTime`支持设置动画是否受TimeScale的影响 (#223)
* (2022.10.10) 调整文档格式
* (2022.10.10) 增加`Line``SmoothLimit`可控制平滑曲线不同效果

View File

@@ -898,8 +898,10 @@ namespace XCharts.Runtime
else return valueOrRate;
}
#if UNITY_WEBGL
[DllImport("__Internal")]
private static extern void Download(string base64str, string fileName);
#endif
public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")
{