Exemplo n.º 1
0
    //保存图片
    async void SavePhotoBtn()
    {
        //string path = Application.streamingAssetsPath + "/xuzhang.png";
        //UniversalTool.SaveTexture2DToFile(tex, path);
        string path = Application.streamingAssetsPath + "/xuzhang.png";

        UniversalTool.CaptureScreenAndSave(path);
        StaticData.CreateToastTips("保存成功");//TODO
    }