• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 19 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0353 秒)

1. 微信小游戏加载资源问题 [ 100%]

...: function (data) { if (data.statusCode === 200) MiniFileMgr.readFile(data.tempFilePath, encoding, callBack, readyUrl, isSaveFile, fileType, isAutoClear); else if (data.statusCode === 403) { callBack != null && callBack.runWith([0, fileUrl]); } else { callBack != null && callBack.run...

来源: Laya_社区 发布时间: 20200103

2. 微信小游戏wxmin图片加载有点问题 [ 90%]

...微信小游戏wxmin图片加载有点问题 MiniFileMgr.copyFile=function(tempFilePath,readyUrl,callBack){ var temp=tempFilePath.split("/"); var tempFileName=temp[temp.length-1]; var fileurlkey=readyUrl.split("?")[0]; var fileObj=null var fileObj=MiniFileMgr.getFileInfo(readyUrl); // 这行会导...

来源: Laya_社区 发布时间: 20180104

3. wx.canvasToTempFilePath在TS下如何使用啊? [ 90%]

wx.canvasToTempFilePath在TS下如何使用啊? wx.canvasToTempFilePath({ x: 0, y: 0, width: 100, height: 100, destWidth: 100, destHeight: 100, canvasId: 'myCanvas', success: function (res) { wxd.shareUrl = res.tempFilePath wxd.ShareAppMessage() console.log(res.tempFilePath) } }) 一直报错[ts]...

来源: Laya_社区 发布时间: 20181128

4. 引擎中的修改意见 [ 88%]

....qlogo.cn") == -1 && readyUrl.indexOf(".php") == -1) copyFile(data.tempFilePath, readyUrl, callBack, "", isAutoClear); else callBack != null && callBack.runWith([0, data.tempFilePath]); }else { callBack != null && callBack.runWith([1, data]); } }, fail: function (data:Object)...

来源: Laya_社区 发布时间: 20180820

5. 小游戏截图问题 [ 73%]

小游戏截图问题 [code]canvas.toTempFilePath({ =inheritx: =inherit10, =inherity: =inherit10, =inheritwidth: =inherit200, =inheritheight: =inherit150, =inheritdestWidth: =inherit400, =inheritdestHeight: =inherit300, =inheritsuccess: (res) = > { wx.shareAppMessage({ =inheritimageUrl: res.temp...

来源: Laya_社区 发布时间: 20180822

6. Laya.MiniAdpter.downLoadFile缓存图片后,load读到不到资源。 [ 70%]

...面的MiniImage.onCreateImage中, 但onCreateImage的最后一个参数tempFilePath为空,       附件 : --> 2020-09-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折...

来源: Laya_社区 发布时间: 20200922

7. 关于laya无法缓存非图片、声音文件bug [ 69%]

...};     MiniFileMgr.fakeObj = {};           static copyFile(tempFilePath, readyUrl, callBack, encoding = "", isAutoClear = true) {             var temp = tempFilePath.split("/");             var tempFileName = temp[temp.length - 1];      ...

来源: Laya_社区 发布时间: 20200529

8. 微信小游戏截屏分享 [ 69%]

微信小游戏截屏分享 laya中如何借助小游戏Cavas.toTempFilePath()实现截屏分享呢,求解,,,找了很久了,还没找到方法 2018-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ...

来源: Laya_社区 发布时间: 20180517

9. 2.3.0截屏问题 [ 68%]

...h, Laya.stage.height, 0, 0); let canvas: any = htmlCanvas.sourse; canvas.toTempFilePath({ x: 100, y: 200, width: 50, height: 50, destWidth: 100, destHeight: 100, fileType: "png", quality: 1.0, success: (res) => { console.log(res.tempFilePath); } }) }   报的是 gameThirdScriptError ImageData is...

来源: Laya_社区 发布时间: 20200108

10. 2.3微信截图分享问题 [ 68%]

...过canvas获得一个缓存路径。把缓存路径用来做分享。 var tempFilePath = canvas.toTempFilePathSync( { x: 0, y: 0, width: 100, height: 100, destWidth: 100, destHeight: 100, fileType: 'jpg', quality: 1.0 });   var canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0...

来源: Laya_社区 发布时间: 20191010