大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0046 秒)
...处理下,增加一个消耗video节点的方法:destroyVideoElement() { if (this.element) { this.element.pause(); this.element.src = ""; while (this.element.childElementCount) this.element.firstChild.remove(); } ILaya.timer.clear(this, this.render); } 2、关于Image所说的内存泄漏的问题...
来源: Laya_社区 发布时间: 20240228
...leton); this._currentPlayTime = state.getCurrentPlayTime(this.trackIndex); if (!this._state || !this._skeleton) { return; } this._skeleton.updateWorldTransform(); this.spineItem.render(this._currentPlayTime); this.owner.repaint(); } layabox • 2024-11-09 14:19 @136*****142:我们是用你的示例...
来源: Laya_社区 发布时间: 20241104
...储不存在。 然后进入下载流程,文件下载成功后,在MiniFileMgr.copyFile方法内。 if((isAutoClear && (fileUseSize + chaSize + data.size) >= totalSize)) 此判断被跳过(即认定为存储没有达到50M上限),导致没有调用onClearCacheRes方法清理存...
来源: Laya_社区 发布时间: 20190428
... s3d.load(path, Laya.Handler.create(null, function(sp){ x.s3ds[id] = sp; if(handler)handler.loadeds3d(id, sp); })); } 我首先用loads3d方法加载所有的.lh文件,然后用Sprite3D.instantiate方法加载入场景后,在iPhone6上性能降低了80%,40000个面只有5贞,但是如果...
来源: Laya_社区 发布时间: 20191004
...cell.dataSource); //如果索引不再可索引范围,则终止该函数 if(index > this.data.length)return; //获取当前渲染条目的数据 var listData = this.data[index]; console.log(listData); //根据子节点的名字listNumber,获取子节点对象。 //var img = cell.getChildByNam...
来源: Laya_社区 发布时间: 20170914
...ength;i < n;i++) { tHTMLElement = htmlDiv.getChildAt(i) as HTMLElement; if(tHTMLElement) { tTxt= tHTMLElement.text; if(tTxt) { txt += tTxt; } } } trace("文本内容为"+txt); trace("文本的实际宽度为"+htmlDiv.contextWidth,"文本的实际高度为"+htmlDiv.contextHeight) Laya.stage.addChi...
来源: Laya_社区 发布时间: 20161027
...ent is the only varying element, you should offer a single app to deliver differing content to customers. If you would like to offer this content for purchase, it would be appropriate to use the in-app purchase API. Alternatively, you may consider creating a web app, which looks and behaves similar ...
来源: Laya_社区 发布时间: 20200420
...KLaya.adptcodes.LocalStorageAdpt'); LocalStorageAdpt._readData=function(){ if (!BK.FileUtil.isFileExist(LocalStorageAdpt.dataPath)){ return null; } try{ var dataO=BK.FileUtil.readFile(LocalStorageAdpt.dataPath); var jsonStr; jsonStr=dataO.readAsString(); console.log("jsonStr = " + jsonStr); return J...
来源: Laya_社区 发布时间: 20181030
... 分享 微博 QZONE 微信 kylin 赞同来自: 找到这两个函数,将if注释掉可以暂时规避这个问题 问题的最终原因我们还在排查,在最终的结果出来之前先暂时规避这个问题吧 注释会稍微影响一些性能 2019-12-16 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20191028
...__proto.fillText=function(text,x,y,font,color,textAlign){ Stat.drawCall++; if (arguments.length > 3 && font !=null){
来源: Laya_社区 发布时间: 20180516