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

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

111. LayaBox进阶之UI管理类 [ 62%]

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

112. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 62%]

...(): 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

113. Laya怎么使用雪碧图(spritesheet)? [ 61%]

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

114. 在list的data中给HTMLDIVElement 的innerHTML赋值不成功 [ 60%]

..."+'</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

115. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 60%]

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

116. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 60%]

...:"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

117. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 59%]

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

118. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 59%]

...); 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

119. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 59%]

....MeshSprite3D).meshRenderer == null){            this.renders.push( (sprite3D as Laya.SkinnedMeshSprite3D).skinnedMeshRenderer);           // console.log( (sprite3D as Laya.SkinnedMeshSprite3D).skinnedMeshRenderer);         }else{            this.rend...

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

120. Laya.stage.mouseX; Laya.stage.mouseY取到的坐标用来赋给画曲线方法的起点;在左顶点正常,越往右下角起点就越偏移了 [ 58%]

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