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

大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0083 秒)

1131. UI 控件多次调用 RESIZE 回调问题 [ 86%]

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

1132. Laya.Text文本在iOS10上面显示问题 [ 86%]

...S10上面显示不正确:   这是正常的效果:   代码:    this.testText = new Laya.Label(0, 0, 100, 100)         this.addChild(this.testText)         this.testText.fontSize = 70         this.testText.changeText("测试一下看看有没有问题") 附件 : --...

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

1133. Laya.Tween.to 用这个做缓动动效, 变动scale值有问题, [ 86%]

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

1134. web端ios这边加载压缩的图片加载报错 [ 86%]

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

1135. 2D精灵光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 86%]

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

1136. 数据、图片路径已加载到数组里面,要如何将图片路径赋值给skin?然后显示到list? [ 86%]

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

1137. UI-Label [ 86%]

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

1138. 2.0 的list问题 [ 86%]

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

1139. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 86%]

...Laya3.0.3 的VideoNode不支持在微信浏览器中播放 let videoNode = this.owner.getChildByName("VideoNode") as Laya.VideoNode; videoNode.source = 'xxx.mp4'; videoNode.play(); // 上面代码在PC端安卓苹果等自带浏览器支持视频播放,但是在微信浏览器无任何显示。 le...

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

1140. [LayaAir 2.0]laya2.0 CharacterController move 运动不平滑,会抖动 [ 86%]

...会抖动 官网案例运动起来也会抖动。     部分代码:   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