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

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

641. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 66%]

...合我们调试代码 我们打开Floor.js 找到 Laya.timer.frameLoop(1, this, this.onLoop); 把这一行代码先给注释了 接着 我们先理一理自己的思路 我们要做玩家踩在地板上 那就要用到碰撞检测 上图中紫色的小点点是 两个物体的 坐标起始点 假设...

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

642. clearRes好像没作用,或许我的用法不对 [ 66%]

...() {         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

643. matter.js物理引擎问题 [ 66%]

...点击事件,现在我的做法是注册 Laya.stage.on(Event.MOUSE_DOWN, this, this.onMouseDown),每次点击matter创建的刚体就会消失。 2017-09-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_...

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

644. WASM function signature mismatch [ 66%]

...提示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

645. [LayaAir3]插件开发中,我需要选择文件夹,如何可视化选择文件夹 [ 66%]

...tings("SplitAtlasSetting").data; panel.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; panel.on("click_start_gen", this.startGen, this); } protected onShown() { (this.contentPane as IEditor.InspectorPanel).resetDefault(); this.title = "SplitAtlas"; this.setSize(450, 180); } } class Spl...

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

646. "Cannot read property 'addChild' of undefined" [ 66%]

...rick 对象 (没有问题) 第二个方法 是通过  viruses.forEach(this.drawVirus);  添加 Prick  (报错 map 没有addChild 方法) 什么鬼?   附件 : --> 2017-05-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

647. 龙骨删除后内存不减少 [ 66%]

... 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

648. 使用js压缩工具报错 [ 65%]

...ZONE 微信 kylin 赞同来自: 第813行 Config.FunRestart=Handler.create(this,this.on重启); 定义的变量、函数名等,不要出现中文等非ASCII字符,变量的命名最好要符合规范。   LayaAirIDE里的压缩工具会分析代码,类似的中文命名的变量,通不过...

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

649. 陀螺仪 IOS [ 65%]

陀螺仪 IOS    Laya.Gyroscope.instance.on(Laya.Event.CHANGE,this,this.onDeviceorientation);   在IOS 下没有调用 onDeviceorientation 这个方法。陀螺仪在苹果上如何处理 2019-08-15 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

650. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 65%]

碰撞检测 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