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

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

91. laya3.0中jszip使用异常 [ 61%]

...里报错:[Game] Uncaught (in promise) Error: End of data reached (data length = 1, asked index = 4). Corrupted zip ?我以为压缩文件有误,换了个以前项目在使用的压缩文件,结果也是一样的。 这是啥问题啊……………………,崩溃ing 老项目都是可以...

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

92. Laya.loader加载BUG [ 61%]

...0;                         for (i = 0; i < data.length; i++) {                             res = res + String.fromCharCode(data[i]);                         }                         data = JSON.pa...

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

93. 【简单跑酷--JS版】---Lv.6 终篇 [ 60%]

...前物品列表里面是否有 有的话 就从里面拿 if(this.itemList.length > 0){ item = this.itemList.shift(); item.visible = true; }else{ //对象池中拿Item var item = Pool.getItemByClass("item",Item); } //是否有特殊物品 如果有 我们就生成特殊物品 if(randNum > 0.95 ...

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

94. 分享一个Shader版的CoolDown实现 [ 60%]

...uv_info.zw - vec2(0.5,0.5))*256.0;\                 float radius = length(pos.xy);\                 float angle = -degrees(atan(pos.x, pos.y)) + 180.0;\                 float fa = radians(angle - progress * 360.0) * radius + 1.0;\                 fa = clamp(fa, 0.0, 1...

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

95. 引擎底层报错了?simplesingletonlist:[object Object] [ 59%]

...laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++),引擎代码 i没有赋初值,导致 i<n永远为false. 峯 • 2020-01-09 16:49 好吧,我再留意下,我iPhone7p上是没出现过,iPhoneX上出现过

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

96. 关于laya无法缓存非图片、声音文件bug [ 59%]

...lePath.split("/");             var tempFileName = temp[temp.length - 1];             var fileurlkey = readyUrl;             var fileObj = MiniFileMgr.getFileInfo(readyUrl);             var saveFilePath = MiniFileMgr.getFileNativePath(temp...

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

97. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 59%]

...oves)break;                     for (j = 0, n = touchemoves.length; j < n; j++) {                         _this.initEvent(touchemoves[j], evt);                         _this.check(_this._stage, _this.mouseX, _this.mouseY, _this.onMouseMove);   ...

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

98. 自定义shader-地形shader [ 58%]

...er.sharedMaterial = customMaterial; } for (var i = 0, n = spirit3D._childs.length; i < n; i++) setCustomMaterial(spirit3D._childs[i]); } function initShader() { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0, 'a_Texcoord0': Laya.Vert...

来源: Laya_示例 发布时间: 20251130

99. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 58%]

... for (var i:int = 0; i < skinnedmesh.skinnedMeshRenderer.sharedMaterials.length;i++ ){ skinnedmesh.skinnedMeshRenderer.sharedMaterials[i].lock = true; } })); ``` ##### 3D批量加载时,资源上锁 ​ 在批量加载资源的时候,无法拿到回调值。这时候就需要开发者通过 `Lay...

来源: Laya2.0_文档 发布时间: 20210715

100. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 58%]

...Component cannot be invoked without 'new' TypeError: Cannot read property 'length' of null TypeError: Cannot read property 'getSubShaderAt' of undefined Uncaught TypeError: Cannot read property 'indexCount' Uncaught TypeError: Cannot read property 'LayaMotionState' of undefined 问题状态 最新...

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