[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

@@ -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 = "")
{