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

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

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

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

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

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

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

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

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

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

735. 为何对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

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

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

738. 给以个对象绑定两个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

739. Quick Compile: false [ 72%]

...载自己手动缓存的本地文件 Ignored attempt to cancel a touchmove event with cancelable=false Ignored attempt to cancel a touchmove event with cancelable=false 3D碰撞问题,isTrigger动态设置true false 会导致碰撞失效 Browser.onMiniGame 如果加在一开头,初始化的前...

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

740. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 72%]

...h(config); console.log(`Running 'rollup watcher'...`); let tS; watcher.on('event', (event) => { // event.code 会是下面其中一个: // START — 监听器正在启动(重启) // BUNDLE_START — 构建单个文件束 // BUNDLE_END — 完成文件束构建 // END — 完成所有文件...

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