大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0058 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...拖第五个item也叫item0, 通过list.selectHandler = new Laya.Handler(this, this._OnSelect); function _OnSelect(){ //选中的render上加个选中框, var selection = this.visualizeList.selection; selection.addChild(this.m_CenterDiv.imgSelect); } 第五个render也会有选...
来源: Laya_社区 发布时间: 20171101
...Array(); Laya.loader.load("test.json", Handler.create(this, onLoaded), null, Loader.ATLAS); //var json:JSON = Loader.getRes("test.json"); //trace(json); } function onLoaded():void { ...
来源: Laya_社区 发布时间: 20170413
...载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted)); public loadCompleted(sp:Laya.Sprite3D):void { this._loaded = true; let useObject:Laya.Sprite3D = sp.getChildAt(0) as Laya.Sprite3D; } 重复加载同一...
来源: Laya_社区 发布时间: 20200609
...drawCir.pos(200,200); Laya.stage.addChild(drawCir); drawCir.on(Event.CLICK,this,onDrawCirClick); 2017-09-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 浪货界扛把子 相关问题 分享:自定义事件派发与侦听(A页面...
来源: Laya_社区 发布时间: 20170905
...); } //把base64添加到图片上 img.src = base64; }; file.readAsDataURL(this.files[0]); }); </script> 能不能通过这种方法把他转换成canvas里的image再显示在舞台上。 2017-01-11 0 1 分享 微博 QZONE 微信 AllenYT 赞同来自: 您好 成功了嘛 怎么调用的 2...
来源: Laya_社区 发布时间: 20170111
...件 官方文档错误,我就不发demo了如下是官方文档里的代码this.ani = role3D.getChildAt(0).getComponentByType(Laya.Animator) as Laya.Animator; //监听默认动画完成后播放站立动画 this.ani.on(Laya.Event.COMPLETE,this,this.onAniComplete);但 Laya.Animator跟本没有继承...
来源: Laya_社区 发布时间: 20190112
...赋值。 > 动态修改摄影机视口 ```typescript Laya.timer.once(3000,this,function () { //获取第一个摄影的视口 var viewport1 = camera1.normalizedViewport; //修改参数 viewport1.width = 0.2; //重新赋值是视口 camera1.normalizedViewport = viewport1; var viewport2 = camera2.nor...
来源: Laya2.0_文档 发布时间: 20210715
...加载 完.atlas文件后,源码: --------源码--------- var aniData=_this_._parseGraphicAnimation(Loader.getRes(url)); if (!aniData)return; var aniList=aniData.animationList; var i=0,len=aniList.length; --------源码--------- 报错: aniList.length为null "Cannot read property 'length' of n...
来源: Laya_社区 发布时间: 20180719
...逼,然后就查引擎源码,最后发现是 var t=Utils.measureText(this.char,this.font);这个方法的问题,在安卓、韩文字体的情况下,这个方法返回的t.width的值一直为0,导致在计算韩文的文本渲染宽度时,韩文字符的宽度一直为0,因此所有...
来源: Laya_社区 发布时间: 20210206
...示对象 *@param index */ __proto.showDisplayByIndex=function(index){ if (this._replaceDic[index]) index=this._replaceDic[index]; if (this.currSlotData && index >-1 && index < this.currSlotData.displayArr.length){ this.displayIndex=index; this.currDisplayData=this.currSlotData...
来源: Laya_社区 发布时间: 20180106