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

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

241. 2.x引擎项目升级说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 46%]

...文件(组合) let tasks:Array<Promise<any>> = []; tasks.push(Laya.loader.load(url)); tasks.push(Laya.loader.load(url2)); Promise.all(tasks).then((res:Array<any>)=> { //用于异步加载 }); 1.4 Texture和Texture2D的问题 同一个资源地址,无论是加载Texture还...

来源: Laya3.0_文档 发布时间: 20251010

242. 内存释放问题 [ 46%]

....length; index < len; index++) { muduleName = mNames[index]; uiResArray.push({ url: bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName), type: Laya.Loader.ATLAS }); } Laya.loader.load(uiResArray, Laya.Handler.create(this, onCompleted, [className]), Laya.Handler.creat...

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

243. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 45%]

...一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr.push({label: "item " + i, clip: i % 9,btn:"btn"+i}); } //给list赋值更改list的显示 this.list.array = arr; //给list添加渲染函数 this.list.renderHandler = new Handler(this, onListRender); } //通过渲染函数为Bt...

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

244. 模拟石头下落过程不明抖动 [ 45%]

...Laya.Sprite(); ball .graphics.drawRect( 0,0,140,140,"#d9d919"); this.balls.push( ball ); return ball; } } new TexasMain(); [/i][/i] 附件 : --> 不明抖动.rar 2018-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...

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

245. LAYAIDE运行VSCODE插件失败问题(VSCODE正常) [ 45%]

...wInformationMessage('build template complete.'); }); context.subscriptions.push(disposable); } exports.activate = activate; function deactivate() { } exports.deactivate = deactivate; 问题来了,在layaide中安装成功,运行失败,无法正常使用。 附件后缀名改成vsix即可直接...

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

246. laya接入fairyGUI的时候资源加载方式? [ 45%]

...atlas.file)) { allatlas[element.atlas.file] = element.atlas.file; loadData.push({ url: element.atlas.file, type: Laya.Loader.IMAGE }); } } } if (otherLoadData && otherLoadData.length > 0) { loadData = loadData.concat(otherLoadData); } for (var i = 0; i < loadData.length; i++) { if (Obj...

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

247. layabox加载fairygui发布的二进制文件报错 [ 45%]

...ents.Event.COMPLETE*/"complete",content); resInfo.offAll(); this._infoPool.push(resInfo); this._statInfo.loaded++; this.event(/*laya.events.Event.PROGRESS*/"progress",this.getProgress()); }   调试结果 (no filename):1 //res/Bag.json [21357]:undefined c.warn @ (no filename):1 (no filename):1 url:...

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

248. ScrollRect设置会引起其他的UI资源无法正在显示 [ 44%]

...lt;len;i++){ p = new Image("test/footprint.png"); p.pos(i*PATH_LEN,0); arr.push(p); _path.addChild(p); } //注释下面这行就正常了 _path.scrollRect = new Rectangle(0,0,(len-1)*PATH_LEN,58); btn_start.clickHandler = new Handler(this,StartMove,[len]); } private function StartMove(len:int):void ...

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

249. List 组件做的手风琴Demo [ 44%]

...dler =new Laya.Handler(this,this.updateItem);         this.listArr.push(list); //------------------------------------------------------------------------------ updateItem(cell:Item,index:number){           var img1 = cell.getChildByName("img1") as Laya.Image;         var img...

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

250. List翻页效果 [ 44%]

...nOpened(param); let imgArray = ; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text...

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