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

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

1. button.event("click") 报错 [ 100%]

button.event("click") 报错 调用底层 onMouse(e) 前几次e 有值 但最后打印·出来e 为undifiend 导致报错 不知道是什么鬼 我用的 1.7.22 2019-01-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

2. this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 [ 99%]

this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 this.btClose1.on(Laya.Event.CLICK,null,this.close); 这句代码报错  附件 : --> 2017-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueyin...

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

3. import Event = laya.events.Event; 报错 [ 94%]

import Event = laya.events.Event; 报错 import Event = laya.events.Event; 报错 file: 'file:///e%3A/Web/GameA/client/src/GameMain.ts' severity: '错误' message: 'Import declaration conflicts with local declaration of 'Event'' at: '5,1' source: 'ts' 项目中没有其他地方写这个import, 但...

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

4. 关于3d场景上Button点击事件顺序问题 [ 92%]

...按钮button。 2,在场景中加入了鼠标点击事件  Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick);   private function sceneClick():void {     trace("scene clicked"); }   3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void {     e....

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

5. 关于UI与3D场景的问题 [ 91%]

...相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: button.on(Laya.Event.CLICK, this, function(event:Laya.Event){ console.log("点击到了UI"); event.stopPropagation(); }); 完整代码 2018-05-30 0 17 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你这个问题描述的很明确,...

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

6. Layabox的event方法在云真机与脚本录制中会报错?(与微信官方联系过,觉得是引擎自身问题) [ 80%]

Layabox的event方法在云真机与脚本录制中会报错?(与微信官方联系过,觉得是引擎自身问题) this.resetBtn.event(Laya.Event.CLICK);   该代码会引发Layabox在云真机与脚本录制中出现以下两种报错,而在正常运行过程中,不会出现该错误...

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

7. 微信飞机大战报错 [ 78%]

...\node_modules\vscode-debugadapter\lib\protocol.js:24:60)     at emitOne (events.js:96:13)     at Socket.emit (events.js:188:7)     at readableAddChunk (_stream_readable.js:[...]   GameInfo.js代码: var GameInfo = (function(_super){     function GameInfo(){         GameInfo.super(this);...

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

8. Image.loadImage 方法加载问题 [ 78%]

...button/button_window_public_space_enter.png";    this.btnEnter.on( Laya.Event.CLICK, this, this.btnClick );    this.width = 1553;    this.height = 270;   }   public set publicSpaceData ( publicSpaceInfoData:any )   {    this._publicSpaceData = publicSpaceInfoData;    console.log...

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

9. js飞机大战报错 请大神看看 [ 73%]

...按钮点击事件 点击后暂停游戏         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         // 初始化UI 显示         this.reset();     } ...     "Cannot read property 'on' of undefined" "TypeError: Cannot read property 'on' of undefined     at new ...

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

10. parameter 2 is not of type 'WebGLTexture'. [ 72%]

..._start = this.getChildByName('btn_start') as Laya.Image; btn_start.on(Laya.Event.CLICK,this,()=>{ // 加载资源足以播放 if(videoElement.readyState == 4){ videoElement.play(); } }); 附件 : --> demo.zip 2020-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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