大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0083 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...ya.Box(); a.left = a.top = a.right = a.bottom = 0; a.on(Laya.Event.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测试代码如上,每1s会回调一次控件 a 的 RESIZE ...
来源: Laya_社区 发布时间: 20181214
...S10上面显示不正确: 这是正常的效果: 代码: this.testText = new Laya.Label(0, 0, 100, 100) this.addChild(this.testText) this.testText.fontSize = 70 this.testText.changeText("测试一下看看有没有问题") 附件 : --...
来源: Laya_社区 发布时间: 20190220
...Tween.to 用这个做缓动动效, 设置 alpha 和 scale值有问题, this.tw1 = Laya.Tween.to(this.load_1, { scaleX:0.01 }, 250, Laya.Ease.quadOut, Handler.create(this, this.tw1Complete1)); 只要是设置scale值最终变为0就有问题,, var style=this.getStyle(); 这个获取的style...
来源: Laya_社区 发布时间: 20180315
....core.js 18667行 complete方法 按照如下修改 complete(data) { this._data = data; if (this._customParse) { this.event(Event.LOADED, data instanceof Array ? [data] : data); } else { this._http.offAllCaller(this); Loader._loaders.push(this); if (!Loader._isWorking) Loader.checkNext(); } } ...
来源: Laya_社区 发布时间: 20200214
...oader.load("resources/spritelight.png", Laya.Loader.IMAGE).then(() => { this.setSpriteLight(); this.setDirectLight(); this.setBackground(); }); } // 配置精灵灯光 setSpriteLight(): void { this.spriteLight.pos(100,350); let spritelightComponent = this.spriteLight.getComponent(Laya.SpriteLight...
来源: Laya3.0_文档 发布时间: 20250214
...哪里 2018-03-21 0 0 分享 微博 QZONE 微信 andyskaura 赞同来自: this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender,null,false); 你试一下在回调otherItem_listRender(){ .skin="" } 里面直接给skin赋值,我平常都是这样用的。 2018-03-21 0 ...
来源: Laya_社区 发布时间: 20180321
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF"...
来源: Laya_示例 发布时间: 20250226
2.0 的list问题 /** 初始化坑位 */ private initCellList(): void { this.cellList.itemRender = CellItem; this.cellList.vScrollBarSkin = ""; this.cellList.repeatX = BattleMgr.Ins.Model.crosCel; this.cellList.repeatY = BattleMgr.Ins.Model.maxCell / BattleMgr.Ins.Model.crosCel; this.cellList.array...
来源: Laya_社区 发布时间: 20181221
...Laya3.0.3 的VideoNode不支持在微信浏览器中播放 let videoNode = this.owner.getChildByName("VideoNode") as Laya.VideoNode; videoNode.source = 'xxx.mp4'; videoNode.play(); // 上面代码在PC端安卓苹果等自带浏览器支持视频播放,但是在微信浏览器无任何显示。 le...
来源: Laya_社区 发布时间: 20230825
...会抖动 官网案例运动起来也会抖动。 部分代码: this.characterController = this._tempVirtualMoveGo.addComponent(Laya.CharacterController); let sphereShape = new Laya.CapsuleColliderShape(0.5, 1); sphereShape.localOffset = new Laya.Vector3(0, 0.3, 0); this.characterControll...
来源: Laya_社区 发布时间: 20190626