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

大约有 29 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)

11. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 76%]

...hts.concat(scene._pointLights._elements); for (let i = 0; i < allLights.length; ++i) { let light = allLights[i]; for (let layer = 0; layer < 32; ++layer) { let layerMask = Math.pow(2,layer); light.active = (camera.cullingMask & layerMask) && (light.cullingMask & layerMask); if ...

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

12. 使用getChildByName()无法得到子节点对象 [ 74%]

...引范围,则终止该函数             if(index > json.length)return;             //获取当前渲染条目的数据             var data = json[index];             cell._childs[0].text=data.text.text;             cell._childs[1].te...

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

13. 有些模型load之后,MeshSprite3D 的共享材质个数为0,无法对材质进行操作 [ 73%]

...ody_03") as MeshSprite3D;       if(ms)       {           trace("length " + ms.meshRender.sharedMaterials.length);       }  }      输出: length 0   2017-01-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

14. html固定宽高,设置垂直居中没有效果。只有水平居中才生效。看了下源码,感觉在updatePos函数里的算法不对 [ 73%]

...this._getCSSStyle()._getValign() == 1){ for(var i = 0; i < this._childs.length; i++){ var e = this._childs[i]; if(e instanceof HTMLElement && e._text.words){ for(var j = 0; j < e._text.words.length; j++){ var w = e._text.words[j]; w.y = (this.height - tArray[1])/2 + w.y; } }else{ e.y =...

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

15. 分享个用美术资源做位图文本的方法。。。 [ 73%]

...rite",this._childs[k]); } this.removeChildren(); var charTotal: number = v.length; var charSps: any = ; for(var i=0;i<charTotal;i++){ var targetChar = v.substr(i,1); var charData: any = this._jsonData.frames[targetChar]; if(!charData){ console.warn("没有找到对应的字符:" + targetChar); ...

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

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

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

17. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 71%]

...个圆型扇出 Angle DEG:形状的圆形方面的角度 Radius:半径 Length:长度 Emit from:发射方式 Base:基于锥形底部 Base Shell:基于锥形底部壳 Volume:基于锥形内部 Volume Shell:基于锥形内部壳 Randomize Direction:随机化方向 (动图9)展示...

来源: Laya3.0_文档 发布时间: 20240117

18. Node类中getChildByName没有null容错 [ 68%]

...:cannot read property 'width' of null TypeError: Cannot read property 'length' of null Laya.stage报null 问题状态 最新活动: 2017-03-23 19:56 浏览: 1347 关注: 2 人 palgerrard • 2017-03-23 20:31 ok,其实还是有可能出现空的。

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

19. destroy 报错 [ 68%]

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

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

20. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 67%]

...ng) {             console.log('switchAnimation: ' + this.meshes.length);             let anitemplet = this.anies[name];             for (let mesh of this.meshes) {                 let ani = mesh.getComponentByType(SkinAnimations, 0) as SkinAnimations; ...

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