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

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

731. 材质-PBRStandard材质 [ 72%]

..../../res/threeDimen/scene/PBRMaterialScene/Showcase.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky...

来源: Laya_示例 发布时间: 20260303

732. js飞机大战报错 请大神看看 [ 72%]

...按钮点击事件 点击后暂停游戏         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

733. 纹理加载时,drawTexture方法报错 [ 72%]

...理加载时,drawTexture方法报错 if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }drawTexture方法最下方有上面这一段代码,作用大概是第一加载失败时,再重新加载一遍。本来是挺好的,但是tex.once却会...

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

734. laya如何做屏幕旋转 [ 72%]

...选项,如果你想判断是否旋转了,你可以为你的游戏添加Event.RESIZE事件即可,根据Browser.width和Browser.height的获取,可以判断当前屏幕的尺寸,以此来判断是否进行了屏幕旋转! 2017-04-05 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

735. LAYA AIR ide1.7.1beta 网页跟手机调试不能用 [ 72%]

...g-core\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:176:18) Error processing "evaluate": TypeError: Cannot read property 'api' of undefined at ChromeConnection.get api [as api] (f:\LayaA...

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

736. [LayaAirIDE3]关于事件清理的一点疑问 [ 72%]

...问 在场景中有一个按钮组件,设置了监听 this.btn.on(Laya.Event.CLICK, this, this.changeData);,,   然后切换场景 ,是不是要在 onDestroy(): void {         if (this.btn) {             // 清理所有以 this 为 caller 的事件             this.btn.offA...

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

737. 为何对sp的监听事件没有反应呢? [ 72%]

...Laya.stage.height - xxx.height) / 2; Laya.stage.addChild(xxx); xxx.on(Laya.Event.CLICK, this, this.onXXX); private onXXX() {    console.debug("Hello"); } 2017-06-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...

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

738. laya.ui.ComboBox [ 72%]

...ll Classes | Index | Frames No Frames ComboBoxProperties | Methods | Events Packagelaya.uiClasspublic class ComboBoxInheritanceComboBox UIComponent Sprite Node EventDispatcher Object ComboBox 组件包含一个下拉列表,用户可以从该列表中选择单个值。 Public Properties Hide...

来源: Laya2.0_api 发布时间: 20190513

739. list的selectHandler属性连续点击同一个item不能重复接收事件 [ 72%]

...         this.changeSelectStatus();             this.event(/*laya.events.Event.CHANGE*/"change");             this.selectHandler && this.selectHandler.runWith(value);             this.startIndex=this._startIndex;         //}     }); 20...

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

740. 给以个对象绑定两个on方法为什么只能执行一次 ? [ 72%]

...er.create(this,this.clickEnd));         }         this.obj.on(Laya.Event.CLICK,this,this.init);     }     return BtnFeed; })(); //实例化上面的类 _proto.getFeedBtn = function(){         this.feedBtn = [             this.myHome,//我的家园             this.famlily...

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