大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0073 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
list问题 我使用this.taskShowMainList.array = data,创建了一个list,data的数据长度是10,但是在打印console.log(this.taskShowMainList.cells)的时候,发现cells的长度只有8, 这样我就并不能获得list下的所有生成的item。我想获取list下生成的所有...
来源: Laya_社区 发布时间: 20190723
... = (function(_super) { function AudioCommand() { AudioCommand.__super.call(this); } __class(AudioCommand, 'model.resource.audio.controller.AudioCommand', _super); 1.AudioCommand.__super.call(this); 2.__class(AudioCommand, 'model.resource.audio.controller.AudioCommand', _super); 1,2这两个句代码...
来源: Laya_社区 发布时间: 20180313
...te.loadImage神奇的事情。 alert('start load ' + playerInfo.head_url); this.player_head.loadImage(playerInfo.head_url,0,0,playerHeadWH,playerHeadWH,Handler.create(this,function(){ alert('load done'); }) 在微信iphone 6plus里,死活不进这个回调。 在PC浏览器里调试没有任何问...
来源: Laya_社区 发布时间: 20170522
这是为什么? 这里为什么不直接传this.setScore过去,而是要变成一个回调函数再调用 这个是为什么,一直不解! 附件 : --> 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...
来源: Laya_社区 发布时间: 20170920
Laya.Tween.to Laya.Tween.to(this.arrowImg, {"rotation": destination}, 4000, Laya.Ease.cubicOut, Handler.create(this, ()=> { })); 如何控制Laya.Ease.cubicOut的速度 2018-05-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20180503
...力感应在手机没有回调问题 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator); monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) 在PC端调试回调中accelerationIncludingGravity为空,手机扫码调试。次函数不会被调...
来源: Laya_社区 发布时间: 20190928
Tiled 中GridSprite.hide无效 var grid:Laya.GridSprite = this.obstacleLayer.getObjectByName("grid0"); frid.hide();//无效 this.obstacleLayer.hideGridSprite(grid)//也无效 2018-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20181122
...出屏的事件? Laya.stage.on(Laya.Event.MOUSE_OUT, this, function(){console.log("mouseout")}); Laya.stage.on(Laya.Event.MOUSE_UP, this, function(){console.log("mouseup")}); mouseup能正常监听到,stage上加的MOUSE_OUT事件,当鼠标移出屏...
来源: Laya_社区 发布时间: 20200407
...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本方...
来源: Laya_社区 发布时间: 20190426
...= Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); this.scene.addChild(monkey); //获取角色动画组件 var ani = monkey.getChildAt(0).getComponent(Laya.Animator); //创建一个动画动作状态 var state1 = new Laya.AnimatorState(); //设置动作状态的名称 state1....
来源: Laya2.0_文档 发布时间: 20210715