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

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

271. Box绑定事件失效 [ 74%]

...456 赞同来自: 代码部分: this.room_top1 = new Laya.Box(); console.log(this.room_top1) this.room_top1.on("click",this,function(){console.log("11111111111")});   2017-11-16 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你输出下box的宽高,看看是否有值吧 201...

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

272. 控制台如何输出变量数值 [ 74%]

... 1 个回复 Laya_Aaron 赞同来自: trace(变量) 。或者 consle.log(变量) 2018-05-31 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 。 相关问题 求问shader中的attribute变量怎么动态修改 路径是对的,但老...

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

273. Dialog 关闭效果无效 [ 74%]

Dialog 关闭效果无效 代码如下: var CommonDlg = (function (_super) { function CommonDlg() { CommonDlg.super(this); } Laya.class(CommonDlg, "CommonDlg", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCl...

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

274. 给以个对象绑定两个on方法为什么只能执行一次 ? [ 73%]

...            this.header.getChildByName("toggleMenu").getChildByName("log"),//日志             this.header.getChildByName("toggleMenu").getChildByName("rank"),//排名             this.header.getChildByName("toggleMenu").getChildByName("recharge")//充值         ]        ...

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

275. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 73%]

...试代码,压根就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); v...

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

276. 关于Laya.Quaternion.createFromAxisAngle旋转角度不正确的问题 [ 73%]

...)          //结果不与向量dir2重合         console.log(dir2);         console.log(newdir1);         console.log(newdir2);     }     // 向量夹角     public Angle(ma, mb) {         var v1 = (ma.x * mb.x) + (ma.y * mb.y) + (ma.z * mb.z); ...

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

277. [3.0.6]运行时切出窗口,再回来后不能正常显示和停止运行 [ 73%]

...上,运行状态下,切出去再回来之后,内容都看不见了,但是log还在正常输出,按钮也看不见了,但是点击有切换反应,不过无法关闭当前状态.其他按钮好像好使,但是没逐个测试. 此问题连续多次出现.   经多次测试(其实是多次发生,感觉...

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

278. 除了用“+"拼接,如何创建格式化字符串? [ 73%]

...6: var h = 'Hello'; var w = 'World'; var helloWorld = `${h} ${w}`; console.log(helloWorld); // 用在console console.log("%s%d", "one plus one equals ", 2) 2017-10-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jxfcwys 相关问题 Ad...

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

279. 从对象池里取出的对象设置坐标失败 [ 73%]

...??底层对象池没有做好? v.pos(nextPost.x, nextPost.y) console.log(nextPost, v.x, v.y) console.log(v)   附件 : --> 2018-05-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Nothing 赞同来自: 好...

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

280. 龙骨动画demo [ 73%]

...onBones/chicken/chicken.sk", Laya.Handler.create(this, (e) => { console.log(e); let num = skeleton.getAnimNum() let name = skeleton.getAniNameByIndex(num - 1); skeleton.play(name) }));  this.owner.addChild(skeleton); 2019-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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