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

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

1121. 发布微信小游戏后 this.preinitialize is not a function [ 86%]

发布微信小游戏后 this.preinitialize is not a function IDE里面调试一切正常,发布微信小游戏以后就出现这个BUG 2018-12-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 云淡风轻 赞...

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

1122. Timer Handler被覆盖 [ 86%]

...var mid = method.$_TID || (method.$_TID = (Timer._mid++) * 100000); return this._map[cid + mid]; }   当游戏玩的功能多时间长了,随着caller._$GID的增加,this._map里正在使用的handler被覆盖。 我们游戏有一个战斗的主循环出现了被覆盖的情况,导致游戏...

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

1123. 使用laya官方示例代码制作微信小游戏无法显示 [ 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_社区 发布时间: 20180529

1124. laya 微信小游戏 Dialog页面不能popup [ 86%]

...opup 刚进入时 可以 popup 点击主页上按钮 popup 不出来 通过this.addChild 没有蒙板遮罩,Dialog里的List组件 this.list_Btn.renderHandler = new Laya.Handler(this, this.onRender); this.onRender 函数 也未执行 2018-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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

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

1126. 新手,图片加载不进去,没有报错。很疑问 [ 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

1127. 鼠标脚本(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

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

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

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