• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0073 秒)

1351. 动画添加了 滤镜,drawcall 次数暴增,这是为啥???? [ 83%]

...数暴增,这是为啥???? 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

1352. 透明模型重叠的问题 [ 83%]

...   我用的是自定义材质,派生自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

1353. 2.0.0类库,camera关闭遮挡剔除会报错 [ 83%]

...if (camera.useOcclusionCulling){ FrustumCulling.renderObjectCulling(camera,this,context,this._renders); }else { FrustumCulling.renderObjectCulling(null,this,context,this._renders); } 而被调用的函数中又直接用到了camera中的变量,传入null的就会报错

来源: Laya_社区 发布时间: 20190322

1354. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 83%]

...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

1355. 在苹果手机能显示出图片,为什么安卓手机显示不出来 [ 83%]

在苹果手机能显示出图片,为什么安卓手机显示不出来 this.img_TopL.skin = "" + this.TopIcon[0]["icon"]; this.img_TopR.skin = "" + this.TopIcon[0]["icon"]; 这两段代码是我从服务器下载的图片地址, 在苹果手机能显示出图片,为什么安卓手机显示不...

来源: Laya_社区 发布时间: 20180822

1356. 2.1beta骨骼动画重复播放 必抖动 [ 83%]

...时的解决方法是我监听动画完成并且设置不要重复播放 this.mArmature.on(Event.STOPPED, this, this.playStanding); this.mArmature.play("standing",false);//设置为false 不重复播放动画播放完成后在播放一次,依次循环…… 这样就没有抖动了 附件 : --> 20...

来源: Laya_社区 发布时间: 20190521

1357. Laya.Sprite loadImage 参数问题 [ 83%]

...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

1358. 相对布局,重新适应问题 [ 83%]

...手动监听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

1359. 新人求助:onStart赋值为什么在onUpdate会输出一次为空 [ 83%]

...          }     onStart():void{                this.lab=this.owner as Laya.Label;         }         onUpdate():void{         if(this.lab==null){             console.log("lab为空");             return;         }  ...

来源: Laya_社区 发布时间: 20200602

1360. 3D项目,,模型默认朝向的问题,,, [ 83%]

...向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