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

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

1141. [LayaNative2]pad外设键盘无法捕获到KEY_DOWN,KEY_UP,KEY_PRESS事件 [ 86%]

...决?   以下事件无法触发: Laya.stage.on(Laya.Event.KEY_PRESS, this, this.handleKeypress); Laya.stage.on(Laya.Event.KEY_DOWN, this, this.handleKeydown); Laya.stage.on(Laya.Event.KEY_UP, this, this.handleKeyup);   版本:2.13.3 附件 : --> 事件代码.docx 2024-02-28 添加评论 免...

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

1142. 新手,图片加载不进去,没有报错。很疑问 [ 86%]

...ckGround=(function(_super){ function BackGround(){ BackGround.__super.call(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("comp/bg.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya.Sprite)代码我这样写可以正常显示,你试试...

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

1143. 鼠标脚本(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 86%]

...onsole.log("点击到了我box",owner.name); //从父容器销毁我自己 this.owner.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 this.staticLayaMonkey.addComponent(MouseScript); this.layaMonkey_clone1.addComponent(MouseScript); this.layaMonkey_clone2.addComponent...

来源: Laya2.0_文档 发布时间: 20210715

1144. 用Unity插件导出的模型渲染报错 [ 86%]

... Laya.loader.create("model/role/1/model.lh", Laya.Handler.create(this, this.OnComplete)); private OnComplete():void { let sprite:Laya.Sprite3D = Laya.loader.getRes("model/role/1/model.lh"); this._scene.addChild(sprite); } 155*****924 • 2019-05-16 15:16 这样写应该没问题...

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

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

1146. 子弹添加了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

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

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

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

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