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

大约有 965 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0060 秒)

531. cavans上触发不了input的点击事件 [ 55%]

....Event.CLICK,this,this.onStart); onStart: _proto.onStart = function(){ console.log(111111122222); $("#fileInput").trigger('click'); } 可以打印数字,但是触发不了input控件。 <input id="fileInput" type="file" accept="image/*" style="display: none;" onchange="filechage(this.files)...

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

532. 多线程Worker · LayaAir3.0文档 · LAYABOX [ 55%]

...er = new 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 xml...

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

533. 引用第三方JS模块 · LayaAir3.0文档 · LAYABOX [ 55%]

...Main extends 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,...

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

534. 鼠标脚本(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 55%]

...须拥有碰撞组件(Collider) //当被鼠标点击 onMouseDown(e){ //console.log("点击到了我box",owner.name); //从父容器销毁我自己 this.owner.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 this.staticLayaMonkey.addComponent(MouseScript); this.laya...

来源: Laya2.0_文档 发布时间: 20210715

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

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

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

536. 2.3.0截屏问题 [ 55%]

...00, destHeight: 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.j...

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

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

...明 laya2.1.0版本conchMarket和IMarket接口去哪了? laya如何重写console.log 打印错误跟信息到自己写的日志面板上 Mask显示错误 lose skin comp/button.png 错误,全部按照UI案例来的呀 Box自动宽度计算错误 问题状态 最新活动: 2019-10-22 16:27 浏览:...

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

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

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

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

539. Mac Chrome 打开 Laya.Browser.onSafari 是 true? [ 55%]

Mac Chrome 打开 Laya.Browser.onSafari 是 true? Mac Chrome 打开, console.log Laya.Browser.onSafari 是 true?  2018-12-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 123黄 谷歌...

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

540. VIVO小游戏插屏广告和激励视频广告问题 [ 55%]

...          rewardVideo.onRewarded(()=>{             console.log("发放奖励");             SaveData.Instance().AddDiamond(20);         }); }   我这样子调用广告接口 激励视频可以展示出来 但是关闭视频时报 ERROR: Uncaught TypeErro...

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