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

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

481. spine 播放错乱 [ 70%]

...ture(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); //this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); } private onError() { console.error("load spine error"); } private play(): void {...

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

482. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 70%]

...Main() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(t...

来源: Laya2.0_文档 发布时间: 20210715

483. Laya.MovieClip() new的时候崩溃了,在线等,很急!!!! [ 70%]

...eClip(); this.swfAni.load(strSWF,true,strImg); this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni.on(laya.events.Event.COMPLETE, this, this....

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

484. rigidBody.applyForce 物体不会移动 [ 70%]

...aterial = material; //设置文本显示框位置 this.text.x = Laya.stage.width / 2 - 50; //显示文本显示框 this.text = new Laya.Text(); this.text.overflow = Laya.Text.HIDDEN; this.text.color = "#FFFFFF"; this.text.font = "Impact"; this.text.fontSize = 24; this.text.x = (Laya.stage.width / 5)...

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

485. 原生js传图片給laya的sprite,怎么设置其等比缩小? [ 70%]

...   $pic.height = 246;     $pic.scaleX = $pic.scaleY;     trace("$pic.width:" + $pic.width); })); 请问:我用原生上传了一张图片,然后传給layaAir,这个图片的scale是未知的,我无法预知图片是竖着拍摄还是横着拍摄的,我在layaAir怎么设置其高度...

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

486. this.bitmap.activeResource is not a function. [ 70%]

... Laya.Sprite(); sprite.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); this._content.addChild(sprite); sprite.pos(40, 190);报:this.bitmap activeResource is not a function 2019-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

487. Laya tiledmap 监听事件未响应 [ 70%]

...e/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), null, new Point(1600, 800));      }      private mapLoaded(): void {         let _mapSprite = this.tiledMap.mapSprite();         _mapSprite.mouseE...

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

488. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 70%]

...ler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.height/2-logo.height/2); })); 2018-10-10 0 1 分享 微博 QZONE 微信 hj 赞同来自: 你用这个方...

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

489. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 70%]

...this.templet.loadAni(this.aniUrl); this.maskBox.graphics.drawRect(0,0,this.width,this.height,'#ffffff'); this.mask = this.maskBox; this.maskBox.alpha=0; // this.show(); } private parseComplete():void { //创建模式为1,可以启用换装 this.skeleton =this.templet.buildArmature(1); this.skeleto...

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

490. Animation 使用疑问 [ 70%]

...Rectangle = this.aniBody.getBounds();         this.aniBody.pivot(bound.width / 2, bound.height / 2);         if (direction < 0) {             this.aniBody.scaleX = -1;         } else {             this.aniBody.scaleX = 1;         }     } 每改变一个方向CurMern...

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