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

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

151. laya.filters.ColorFilter_API3.0 [ 69%]

...reset setByMatrix setColor _filter DELTA_INDEX GRAY_MATRIX IDENTITY_MATRIX LENGTH Legend Class Class with type parameter Constructor Property Method Object literal Variable Function Type alias Enumeration Interface

来源: Laya3.0_api 发布时间: 20231115

152. matter中有没有类似于unity中的OnCollision碰撞检测函数呀,用js怎么写 [ 68%]

... home = _gamePage._mainPage._playPage;  for(var i = 0; i < event.pairs.length; i++) {  var pair = event.pairs[i];  if(!(pair.bodyA.label === 'gun' || pair.bodyB.label == "gun")) continue;  var other;  if (pair.bodyA.label === 'gun') { other = pair.bodyB; } else { other = pair.bodyA; }  swit...

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

153. 用Unity插件导出的模型渲染报错 [ 68%]

..._boneNames=[]; var boneCount=LoadModelV05._readData.getUint16(); boneNames.length=boneCount; for (i=0;i < boneCount;i++) boneNames[i]=LoadModelV05._strings[LoadModelV05._readData.getUint16()]; 解析模型的时候 可以看到boneCount的值是0 所以才导致boneNames的长度为0 但是文档...

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

154. list只能显示一个图片 [ 68%]

...索引不再可索引范围,则终止该函数 if(index > this.data.length)return; //获取当前渲染条目的数据 var listData = this.data[index]; console.log(listData); //根据子节点的名字listNumber,获取子节点对象。 //var img = cell.getChildByName("listNumber") ; var img ...

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

155. 深入理解LayaAir引擎架构和实现原理(一)跨平台引擎源码编译 [ 68%]

..._1.emiter.jscObj = json.jscObj; // yield相当于await if (!this.tsCongfig.length || (yield this.compile())) { //确认编译结果 this.checkAllDir(""); } else { console.log("compile fail!"); } }); } 复制代码[/code] 其中__awaiter是一个编译工具函数,相当于async/await ,因为引...

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

156. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 67%]

...&& index >-1 && index < this.currSlotData.displayArr.length){ this.displayIndex=index; this.currDisplayData=this.currSlotData.displayArr[index]; if (this.currDisplayData){ var tName=this.currDisplayData.name; this.currTexture=this.templet.getTexture(tName); if (this.currTexture...

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

157. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 67%]

... 0 ? url.substr(0, idx + 1) : ""; for (var i:int = 0, len:int = toloadPics.length; i < len; i++) { toloadPics[i] = folderPath + toloadPics[i]; } } else { //不带图片信息 toloadPics = [url.replace(".json", ".png")]; } for(i = 0;i<toloadPics.length;i++) { var tempAtlasPngUrl:String = toload...

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

158. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 67%]

...            keyframeNodeOwner.indexInList = this._keyframeNodeOwners.length;             keyframeNodeOwner.referenceCount = 1;             keyframeNodeOwner.propertyOwner = propertyOwner;             keyframeNodeOwner.nodePath = node.nodePath;             keyframeNodeOw...

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

159. 内存释放问题 [ 67%]

...id { let uiResArray = []; let muduleName; for (let index = 0, len = mNames.length; index < len; index++) { muduleName = mNames[index]; uiResArray.push({ url: bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName), type: Laya.Loader.ATLAS }); } Laya.loader.load(uiResArra...

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

160. destroy 报错 [ 66%]

...: 1048 关注: 1 人 标 • 2018-05-14 15:36 n 的值大于 this._childs.length 的值,然后报错。 标 • 2018-05-14 15:47 偶然会报错。偶尔不会

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