public static void MsgDownloadElemToPath() { DownloadElemParam param = new DownloadElemParam(); param.msg_download_elem_param_type = TIMDownloadType.kTIMDownload_File; TIMResult res = TencentIMSDK.MsgDownloadElemToPath(param, Application.dataPath, addAsyncDataToConsole); Utils.Log(((int)res).ToString()); addDataToConsole(res); }