大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
...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
...cell.dataSource); //如果索引不再可索引范围,则终止该函数 if(index > this.data.length)return; //获取当前渲染条目的数据 var listData = this.data[index]; console.log(listData); //根据子节点的名字listNumber,获取子节点对象。 //var img = cell.getChildByNam...
来源: Laya_社区 发布时间: 20170914
...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
...例材质的漫反射颜色改为黑色 */ onCollisionEnter(collision) { if (collision.other.owner === this.kinematicSprite) this.owner.meshRenderer.sharedMaterial.albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 1.0); } onCollisionStay(collision) {} onCollisionExit(collision) {} ``` 运行效果图3...
来源: Laya2.0_文档 发布时间: 20210715
...gt;>>>>after 07-16 13:28:21.312 172-474/? W/FFmpegExtractor: sniff through BetterSniffFFMPEG failed, try LegacySniffFFMPEG 07-16 13:28:21.322 172-474/? E/FFmpegExtractor: /data/data/com.layabox.game/LayaCache/appCache/9ea141a6/18ac4122_dreams.mp3: avformat_open_input failed, err:Permissi...
来源: Laya_社区 发布时间: 20190716
...ying 这样处理是个死循环 private onStageResize(e:Laya.Event):void{ if(Laya.Browser.onMobile){ alert("自适应") Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.alignV = Laya.Stage.ALIGN_TOP; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; } } Victor • 2017-07-10 13:55 @...
来源: Laya_社区 发布时间: 20170707
自定义渲染后,customRender里设置uniform值在ui节点下不生效 1.自定义一个精灵类,里面重写了渲染方法 // 重写渲染函数 public customRender(context:Laya.RenderContext,x:number,y:number):void{ if(this.shader._...
来源: Laya_社区 发布时间: 20181121