大约有 297 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0054 秒)
...tView(clazz); if(!v){ let uiData = {clazz: clazz, view: view}; this.uiList.push(uiData); } }首先判断本地缓存有没有,有的话 不处理,没得话,创建,push到数组中 private getView(clazz: any):Laya.Node{ for(let i:number =0 ; i<this.uiList.length ; i++){ let uiData = this.u...
来源: Laya_社区 发布时间: 20190222
...(): void { const urls: string[] = []; for (let i = 1; i <= 8; i++) urls.push(`${this.ANIMATION_PATH}move${i}.mc`); Laya.loader.load(urls, Laya.Handler.create(this, () => { for (let i = 1; i <= 8; i++) { const clipPath = `${this.ANIMATION_PATH}move${i}.mc`; // 检查资源是否存在 if (La...
来源: Laya_社区 发布时间: 20251211
...{ url:u + "/sheet.png?v=" + config.version, type:ResLoader.BMD, size:1}; b.push(o1); b.push(o2); } App.loader.loadAssets(b, new Handler(onLoadAssetsComplete), new Handler(onProgress));好了,经过这些处理你就可以在项目中直接使用图集了,获取图片的方法跟mornUI一样,...
来源: Laya_社区 发布时间: 20151217
..."+'</span>'}, visible:true }; if(chatListData[i].state==0){ arr.push({ friends:obj, my:{visible:false} }); }else{ arr.push({ my:obj, friends:{visible:false} }); } } chatList.array=arr; } 130*****113 • 2018-03-22 20:45 谢谢各位大神
来源: Laya_社区 发布时间: 20180319
...gltf文件一同加载 / 可省略 struct.extraRes = []; struct.extraRes.push("res/self/gltfMode/gltfBin/dalaozuo-dalaozuo.lani"); // 调用加载函数 // facejson 与 装扮中包含的json文件与图片资源需要提前加载完成 CmShowTool.LoadCharacter(struct, Handler.create(this, this.onLo...
来源: Laya2.0_文档 发布时间: 20210715
...:"loads/progressBar$bar.png",type:Loader.IMAGE}; var proArr:Array=; proArr.push(pro1,pro2); Laya.loader.load(proArr,Handler.create(this,onProLoaded)); } private function onProLoaded():void { // 将进度条显示到舞台 showProgress(); //开始预加载游戏资源 var ape1:Object={url:"apes/monke...
来源: Laya_社区 发布时间: 20160509
... } this._data.pics.push(data); if (this._data.toLoads.length > 0) { this.event(Event.PROGRESS, 0.3 + 1 / this._data.toLoads.length * 0.6); ...
来源: Laya_社区 发布时间: 20201130
...); const [x, y] = this.getPoint(t, x0, y0, x1, y1, x2, y2, x3, y3); result.push(x, y); } } // Ensure the last point is included const lastIndex = this.points.length - 2; if (result[result.length - 2] !== this.points[lastIndex] || result[result.length - 1] !== this.points[lastIndex + 1]) { result.pus...
来源: Laya_社区 发布时间: 20241008
....MeshSprite3D).meshRenderer == null){ this.renders.push( (sprite3D as Laya.SkinnedMeshSprite3D).skinnedMeshRenderer); // console.log( (sprite3D as Laya.SkinnedMeshSprite3D).skinnedMeshRenderer); }else{ this.rend...
来源: Laya_社区 发布时间: 20210203
...ya.stage.on(Laya.Event.MOUSE_MOVE, this, this.move2) } move2() { this.path.push(Laya.stage.mouseX, Laya.stage.mouseY); // console.log("移动的点集合" + this.path); this.ps.graphics.drawCurves(this.a, this.b, this.path, "#fff") // console.log("222鼠标点击的点" + this.a, this.b) } up2() { c...
来源: Laya_社区 发布时间: 20170721