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

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

751. 引用外部脚本的方式 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...ends Laya.Script { private aStarInstance: AStarFinder; onStart() { console.log("Game start"); // 0表示通路,1表示障碍 let myMatrix = [ [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 1, 1, 0, 1, 1, 0], [0, 0, 1, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 1, 0], [1, 1, 1, 0, 1, 0, 1, 0], ...

来源: Laya3.0_文档 发布时间: 20251010

752. js实现多角色同屏显示 [ 55%]

js实现多角色同屏显示 //console.log("进入大厅"); var bidding = new Bidding(); bidding.init(); Dispatcher.Emit("bidder"); Laya.stage.addChild(bidding);   每人每次点击都是new一个对象     每人每次访问LayaSample.js也是new一个新的      如何多角色同屏显...

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

753. 加载界面一直显示 0% [ 55%]

...is.sOS == "Conch-android") { this.bridge.call("loading", value); } console.log("loadingView.prototype.loading=" + value); } }; 这个方法就没有调用,是需要在哪调用吗? 怎么调用? 2019-07-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

754. 【LIST无法拖动】参照官方实例做的 [ 55%]

...   private onSelect(index: number): void {         console.log("当前选择的索引:" + index);         console.log("目的是哪一关" + this.box_arr[index]);         //被点击的节点         this.guaqia = this.box_arr[index];         le...

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

755. 多线程Worker · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

... Worker("js/my_task.js"); myWorker.onmessage = function (oEvent) { console.log("Called back by the worker!\n"); }; myWorker.postMessage("start"); // start the worker. 新建一个my_task.js文件,放到js文件夹下,代码如下: self.addEventListener('message', function (e) { var xmlreq = ne...

来源: Laya3.0_文档 发布时间: 20251010

756. list 渲染不出Text [ 55%]

list 渲染不出Text console.log 能打印出数据,但是没有在游戏上显示出来,头像是现实出来了的,也没报错  是什么原因呢? 附件 : --> 2018-11-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

757. wx.canvasToTempFilePath在TS下如何使用啊? [ 55%]

...tion (res) { wxd.shareUrl = res.tempFilePath wxd.ShareAppMessage() console.log(res.tempFilePath) } }) 一直报错[ts] The 'this' context of type 'typeof wx' is not assignable to method's 'this' of type 'string'. canvasId也是我乱写的 如果才能正确获取小游戏当前画布的canvasId啊...

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

758. 播放声音出错,求指教 [ 55%]

...3", 1, new Handler(this, bgmComplete)); } function bgmComplete() { console.log("播放完成"); }   附件 : --> 2018-03-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 6 个回复 Laya_Aaron 赞同来自: shaotianhk 放...

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

759. 2.3.0截屏问题 [ 55%]

...Height: 100, fileType: "png", quality: 1.0, success: (res) => { console.log(res.tempFilePath); } }) }   报的是 gameThirdScriptError ImageData is not defined ReferenceError: ImageData is not defined     at Function.RunDriver.drawToCanvas (http://127.0.0.1:27664/game/libs/laya.webgl.js:7119:2...

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

760. Laya.MathUtil.getRotation接口说明注释错误 [ 55%]

...vert3DCoordTo2DScreenCoord这个接口api描述是不是错了? 关于Dialog遮罩层移除解决问题的说明 laya2.1.0版本conchMarket和IMarket接口去哪了? laya如何重写console.log 打印错误跟信息到自己写的日志面板上 Mask显示错误 lose skin comp/button.png 错误...

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