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

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

81. 一个修复Laya1.8.3中的粒子销毁时报错黑屏问题的思路 [ 79%]

...t.disableVertexAttribArray(index); attrs[index] = null; } }); while (attrs.length > 0 && attrs[attrs.length - 1] == null) attrs.pop(); } }; let $bufferRecreateResource = Laya.Buffer.prototype['recreateResource']; Laya.Buffer.prototype['recreateResource'] = function() { $bufferRecreateReso...

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

82. 物理射线检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 79%]

...hitResults); //遍历射线检测的结果 for (i = 0, n = this.hitResults.length; i (图3) 不穿透的射线 ![](img/4.png)(图4) 穿透的射线 B类`rayCast`,`rayCastAll`方法使用,这段代码来自于官方示例。([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&catego...

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

83. AnimationBase和MovieClip removeLabel问题反馈 [ 79%]

...this._removeLabelFromList(this._labels[name],label); if(this._labels[name].length == 0){ delete this._labels[name]; } } } } -----------------------------------------------------------------------------------------------------------------------------------------   laya.ani.js---MovieClip 下面加...

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

84. 【LIST无法拖动】参照官方实例做的 [ 78%]

...         let s = json.my_guanqia.substr(0,this.default_guanqia.length);         data = this.find_StringAllIndex(s);         this.box_arr= data;         list.array = data;                  this.list = list;         Laya.stage.addChild(...

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

85. 3D中摄像机绕物体旋转该如何实现? [ 78%]

...I._event.touches == null) { return 0; } else { return this.myevent.touches.length; } } public get Touchs(): Array<any> { return this.myevent.touches } public get GetAxisX(): number { return Laya.stage.mouseX - this.lastMouseX; } public get GetAxisY(): number { return Laya.stage.mouseY - this.l...

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

86. Laya引擎bug [ 78%]

...xt.replace(/\r\n/g,"\n").split("\n");         for (var i=0,n=lines.length;i < n;i++){             var line=lines;             if (needWordWrapOrTruncate)                 this.parseLine(line,wordWrapWidth);             else {       ...

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

87. Unicode与ascii互转对应表 [ 78%]

...value = value + "";             for (var i:int = 0, sz:int=value.length; i < sz; i++) {                 var c:int = value.charCodeAt(i);                 if (c <= 0x7F) {                     writeByte (c);                 } else {   ...

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

88. 2.7.1 enbug: cannon碰撞trigger的enter和exit频繁触发 [ 78%]

..._simulate(deltaTime)函数的  this._btDiscreteDynamicsWorld.callBackBody.length = 0;                 this._btDiscreteDynamicsWorld.allContacts.length = 0; 这两句就正常了 附件 : --> 2020-08-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

89. UI-RefreshList [ 78%]

...var line = 0; //所有的红点数据索引都增加 if (this.redHotStatus.length > 0) { for (let i = 0; i { //更新list数据源 this.refreshList.array = _arr; this.refreshList.scrollTo(line); //将选中索引设定为该索引 this.refreshList.selectedIndex = index; //恢复滚动条到原位 th...

来源: Laya2.0_示例 发布时间: 20240930

90. TS2D基础篇-图集动画运用 问题 [ 78%]

...f (!aniData)return; var aniList=aniData.animationList; var i=0,len=aniList.length; --------源码--------- 报错: aniList.length为null "Cannot read property 'length' of null" 2018-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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