大约有 232 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)
...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
...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
...this._removeLabelFromList(this._labels[name],label); if(this._labels[name].length == 0){ delete this._labels[name]; } } } } ----------------------------------------------------------------------------------------------------------------------------------------- laya.ani.js---MovieClip 下面加...
来源: Laya_社区 发布时间: 20181105
... 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
...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
...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
...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
..._simulate(deltaTime)函数的 this._btDiscreteDynamicsWorld.callBackBody.length = 0; this._btDiscreteDynamicsWorld.allContacts.length = 0; 这两句就正常了 附件 : --> 2020-08-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20200806
...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
...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