mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-29 12:48:47 +00:00
[fix] Fixed Download interface caused the iOS platform to fail to build
This commit is contained in:
@@ -59,6 +59,7 @@
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2022.10.13) 修复`Download`的接口造成`iOS`平台打包失败的问题
|
||||||
* (2022.10.12) 增加`Animation`的`UnscaledTime`支持设置动画是否受TimeScale的影响 (#223)
|
* (2022.10.12) 增加`Animation`的`UnscaledTime`支持设置动画是否受TimeScale的影响 (#223)
|
||||||
* (2022.10.10) 调整文档格式
|
* (2022.10.10) 调整文档格式
|
||||||
* (2022.10.10) 增加`Line`的`SmoothLimit`可控制平滑曲线不同效果
|
* (2022.10.10) 增加`Line`的`SmoothLimit`可控制平滑曲线不同效果
|
||||||
|
|||||||
@@ -898,8 +898,10 @@ namespace XCharts.Runtime
|
|||||||
else return valueOrRate;
|
else return valueOrRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if UNITY_WEBGL
|
||||||
[DllImport("__Internal")]
|
[DllImport("__Internal")]
|
||||||
private static extern void Download(string base64str, string fileName);
|
private static extern void Download(string base64str, string fileName);
|
||||||
|
#endif
|
||||||
|
|
||||||
public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")
|
public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user