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

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

751. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 43%]

..., tex.width, tex.height); /************getPixels内存泄漏*************/ for(var i:int = 0; i < arr.length; i++) { if(arr > 0) { pixelCount++; } } return pixelCount; } private function toLocal(point:Object,mc:Sprite):Point { /* * 参数point可以是Point类型和DisplayObject类型 * mc是...

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

752. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 43%]

...放流程:第一次动画播放完后,会把图集资源清理掉,  for (let imgName of imgAry.imgs) {                 Laya.loader.cancelLoadByUrl(imgName);                 Laya.loader.clearTextureRes(imgName);                 Laya.loader.c...

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

753. 如何获取animation的node节点? [ 43%]

...的配置文件,根据配置文件结构修改 let skillAniArray = []; for(let i in aniProps.mc[options.srcName].frames) { let skill = new Laya.Sprite(); // 创建一个用于存放位图数组的临时精灵 let texture = Laya.loader.getRes(options.srcPath+options.srcName+".png"); // 读取图集...

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

754. Ts简单对象池 [ 43%]

...ift(); GetLenght=():number=>{return this.data.length;} Dispose=()=>{ for(let i in this.data){ Laya.Pool.recover("Dispose",this.data[i]); } } }   2019-12-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为...

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

755. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 42%]

...   this.camera = new Laya.Camera();         this.camera.transform.translate(new Laya.Vector3(0, 2, 5));         this.camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);          this.scene.addChild(this.camera);         Laya.loader.create...

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

756. @regClass编译报错! [ 42%]

...ind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;     for (var i = decorators.length - 1, decorator; i >= 0; i--)       if (decorator = decorators[i])         result = (kind ? decorator(target, key, result) : decorator(result)) || result;     if (kind && resu...

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

757. 重要问题:关于苹果审核被拒 [ 42%]

...在都删除了,就剩下这两个,但是会报 ld: library not found for -lJavaScriptCore clang: error: linker command failed with exit code 1 (use -v to see invocation)。 helloworldlv • 2018-03-21 11:00 build settings /other linker flag 里面把删的库删掉 helloworldlv • 2018-03-21 1...

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

758. [LayaAirIDE3]Laya3.2.1命令行打包,编译错误也生成成功 [ 42%]

...)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details. engine libs bin://engine/libs/spine-core-3.8.js,bin://engine/libs/laya.bullet.js,bin://engine/libs/laya.box2D.js loadLibs: 63.001220703125 ms initLayaStage: 112.833984375 ms installPackages: 0.740966796875 m...

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

759. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 42%]

...ge.addChild(list); // 设置数据项为对应图片的路径 var data = ; for (var i = 0; i < 100; ++i) { data.push({ lb: i, value: i }); // data.push("../../res/ui/listskins/1.jpg"); // data.push("../../res/ui/listskins/2.jpg"); // data.push("../../res/ui/listskins/3.jpg"); // data.push("../../...

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

760. 引擎代码严重问题 导致react报错 [ 41%]

...t Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings. jacksing888 • 2017-03-21 11:19 这里更加合理的做法应该是 自己封装一个函数 去调用 才是比较合理的 尽量少去污染全局的东西 cuix...

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