大约有 1,144 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)
Laya_社区(859) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
...() { super(); Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp); } onKeyUp(e: Laya.Event) { if (e.keyCode == 65) {//A console.log("释放资源false") Laya.loader.clearRes("res/atlas/comp.json", fals...
来源: Laya_社区 发布时间: 20170317
...提示TypeError: xxx is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function ide导出ui时,UI代码显示不正常在小游戏中会报错:gameThirdScriptErrorn.sort is not a function Uncaught TypeError: tex.once is not a function 安卓手机 WASM很多报...
来源: Laya_社区 发布时间: 20211025
...rick 对象 (没有问题) 第二个方法 是通过 viruses.forEach(this.drawVirus); 添加 Prick (报错 map 没有addChild 方法) 什么鬼? 附件 : --> 2017-05-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20170516
... templet = new Laya.Templet(); templet.on(Laya.Event.COMPLETE, this, () => { this.skeleton = templet.buildArmature(1); this.pos1.addChild(this.skeleton); this.skeleton.play("work", true); }); ...
来源: Laya_社区 发布时间: 20210811
陀螺仪 IOS Laya.Gyroscope.instance.on(Laya.Event.CHANGE,this,this.onDeviceorientation); 在IOS 下没有调用 onDeviceorientation 这个方法。陀螺仪在苹果上如何处理 2019-08-15 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20190815
...ZONE 微信 kylin 赞同来自: 第813行 Config.FunRestart=Handler.create(this,this.on重启); 定义的变量、函数名等,不要出现中文等非ASCII字符,变量的命名最好要符合规范。 LayaAirIDE里的压缩工具会分析代码,类似的中文命名的变量,通不过...
来源: Laya_社区 发布时间: 20180806
碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) if(this.outHitInfo.distance < 0)speedX = speedZ = 0; 这个判断中的this.outHitInfo.distance 一直等于-1? -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel...
来源: Laya_社区 发布时间: 20171113
...bgColor = "#232628"; Laya.loader.load([texture1, texture2], Handler.create(this, onAssetsLoaded)); })(); function onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(200, 200); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } func...
来源: Laya2.0_文档 发布时间: 20210715
...时候动画会卡 上代码: _pro.startLoad = function() { this.loadLayer = new Lload(); this.big.addChild(this.loadLayer); var imgArr = ; imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE}); imgArr.push({url:"cont/cpr1.jpg",type:Loade...
来源: Laya_社区 发布时间: 20160815
...不能点击两次 你好,咱们list list.selectHandler = new Handler(this, onSelect); 只能获取一次点击事件么? 如何修改才能让list里面的元素 可以被连续点击? 附件 : --> 2016-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20161202