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

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

131. list点击label保留一种状态 [ 72%]

... dataIndex = data[index]; var label = item.getChildByName('lab'); label.on(Event.CLICK,this,onClickBtn,[index]); } function onClickBtn(index){ for(var q = 0;q < 10;q++){ record_slide_list.getCell(q).getChildByName('lab').bgColor = '#f3d9b4'; } record_slide_list.getCell(index).getChildByName('lab'...

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

132. [LayaAir3]插件开发中,我需要选择文件夹,如何可视化选择文件夹 [ 72%]

... name: "", inspector: "Buttons", options: { buttons: [{ caption: "生成", event: "click_start_gen" }] } } ] } ]); Editor.extensionManager.createSettings("SplitAtlasSetting", "project"); } } 2025-07-23 0 0 分享 微博 QZONE 微信 LayaAir小牛 赞同来自: 方法为Editor.showOpenDialog 2025-07-...

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

133. 音频解码一直遇到这个问题呢,不知道什么原因 [ 72%]

... 写了个边缘光的自定义shader,有很多问题,帮忙看一下 event自定义事件的问题 Panel中的东西左右拖动好象有问题 laya1.7.9beta版 问题状态 最新活动: 2018-05-31 10:42 浏览: 634 关注: 2 人 smile • 2018-05-31 11:01 我wav和mp3格式都试了,播放...

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

134. request failed status:0 text: IOS HttpRequest [ 71%]

...erId:"533", } alert(JSON.stringify(data)); hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); var headers = []; headers.push("Content-Type"); headers.push("application/jso...

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

135. 如何在layaair 上使用get方法的xml ,获得节点属性? [ 71%]

...               hr = new HttpRequest();             hr.once(Event.PROGRESS, this, onHttpRequestProgress);             hr.once(Event.COMPLETE, this, onHttpRequestComplete);             hr.once(Event.ERROR, this, onHttpRequestError);             hr.send(NameJo...

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

136. 针对2.0.0 beta5 setLoadingPage 做增强 [ 71%]

...ndler otherHandler().then(res => { // 默认进度加1% this._loadScene.event("progress", .01) if (res) param = .concat((param || ), [res]) Laya.Scene.open(url, closeOther, param, complete, progress) }) } /** * 清除loading page */ clearLoadingPage() { this._loadScene = null Laya.Scene.setLoadin...

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

137. 使用方向键 控制精灵在格子中移动 [ 71%]

... 可以加我的微信 一起研究 13890999   事件 Laya.stage.on(Laya.Event.KEY_UP,this,this.onkeyup); Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown); Laya.timer.frameLoop(1,this,this.loop);事件响应 onkeyup(e){ for(let i:number = 0;i<this.keyList.length;i++){ if(this.keyList[i]==e...

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

138. 陀螺仪和加速计使用问题 [ 71%]

陀螺仪和加速计使用问题 Laya.Gyroscope.instance.on(Laya.Event.CHANGE,this,this.onDeviceorientation);  Laya.Accelerator.instance.on(Laya.Event.CHANGE,this,this.onMotoin); 官网陀螺仪和加速计例子中的上面两句运行时都报 Cannot read property 'instance' of undefined 的错...

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

139. laya.display.Sprite [ 71%]

...All Classes | Index | Frames No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectSubclasses AnimationBase, PerfHUD, Scene, Stage, Text Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有...

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

140. Animation 下的Event.COMPLETE 回调 [ 71%]

Animation 下的Event.COMPLETE 回调 加入回调 为啥 我的动画都不播放了 _gameTableScene["donghua"+ transformToDesignIndex(msg.index)]._childs[0].on(Event.COMPLETE,null,OnAnimation()); 是我写的不对吗? 2018-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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