大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0073 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...数暴增,这是为啥???? var url = App.animManager.getUrl(id); this.ani.loadAtlas(url,null,id); this.ani.alpha = 0.5; this.ani.play(0, true); var grayMat = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]; //创建一个颜色滤镜对象,灰图 var scaleFilter = new Laya...
来源: Laya_社区 发布时间: 20180515
... 我用的是自定义材质,派生自Laya.Material this.pass.renderState.blend = Laya.RenderState.BLEND_ENABLE_ALL; this.pass.renderState.srcBlend = Laya.RenderState.BLENDPARAM_SRC_ALPHA; this.pass.renderState.dstBlend = Laya.RenderState.BL...
来源: Laya_社区 发布时间: 20200506
...if (camera.useOcclusionCulling){ FrustumCulling.renderObjectCulling(camera,this,context,this._renders); }else { FrustumCulling.renderObjectCulling(null,this,context,this._renders); } 而被调用的函数中又直接用到了camera中的变量,传入null的就会报错
来源: Laya_社区 发布时间: 20190322
...ublic function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; _path2.rotation = Math.atan2(b.y - a.y+300, b.x - a.x) / Math.PI * 180; _path2.pos(a.x,a.y); this.addChild(_path2); var len:int = Math.f...
来源: Laya_社区 发布时间: 20171129
在苹果手机能显示出图片,为什么安卓手机显示不出来 this.img_TopL.skin = "" + this.TopIcon[0]["icon"]; this.img_TopR.skin = "" + this.TopIcon[0]["icon"]; 这两段代码是我从服务器下载的图片地址, 在苹果手机能显示出图片,为什么安卓手机显示不...
来源: Laya_社区 发布时间: 20180822
...时的解决方法是我监听动画完成并且设置不要重复播放 this.mArmature.on(Event.STOPPED, this, this.playStanding); this.mArmature.play("standing",false);//设置为false 不重复播放动画播放完成后在播放一次,依次循环…… 这样就没有抖动了 附件 : --> 20...
来源: Laya_社区 发布时间: 20190521
...L); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 this.createImg(100,50); //红色滤镜 this.creteRedFilter(); //灰色滤镜 this.createGrayFilter(); } /**创建位图**/ private createImg(w:number,h:number):Laya.Sprite{ var Img:Laya.Sprite = new Laya.Sprite(); //添加到...
来源: Laya_社区 发布时间: 20200522
...手动监听Laya.stage.on(Laya.Event.RESIZE,,)来二次适配吗 // this.imgBG.left = 0 ; // this.imgBG.right = 0 ; // this.imgBG.top = 0 ; // this.imgBG.bottom = 0 ; 还有一个就是 layoutEnabled 属性 在什么情况用! 2017-09-18 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170918
... } onStart():void{ this.lab=this.owner as Laya.Label; } onUpdate():void{ if(this.lab==null){ console.log("lab为空"); return; } ...
来源: Laya_社区 发布时间: 20200602
...向laya的正方向,在场景里面创建出来2个, 第一个: this._mainPlayer.transform.position = new Vector3( 0,0,1 ); 第二个: this._npc.transform.position = new Vector3( 0,0,4 ); 然后调用: this._npc.transform.lookAt( this._mainPlayer.transform.position,new Laya.Vector3(0...
来源: Laya_社区 发布时间: 20180925