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

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

1141. Laya2.0构建APP运行闪退,laya.core.js报错 [ 86%]

... I/LayaBox: alert=出错啦,请把此信息截图给研发商 TypeError: this.nativeInput.setBgColor is not a function http://stand.alone.version/lib ... 2712: TypeError: this.nativeInput.setBgColor is not a function this.nativeInput.setBgColor(value); ^^ TypeError: this.nativeInput.setBgColor is ...

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

1142. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 86%]

...rty 'getWorldTransform' of null” 发射时生成子弹: onFire() { if (this.isFire) { Laya.Mesh.load("fly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.add...

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

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

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

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

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

1147. 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_文档 发布时间: 20251010

1148. 数据、图片路径已加载到数组里面,要如何将图片路径赋值给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

1149. 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_示例 发布时间: 20251219

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