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

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

341. 屏幕截屏问题 [ 60%]

...r.js:5719: TypeError: image is not a function                    this._nativeObj = new image();                                      ^            TypeError: image is not a function                at new HTMLImageElement (apploader.js:5719:27)          ...

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

342. 关于as版的Animation.createFrames()不能工作? [ 60%]

...ya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.loader.on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoaded():void { Animation.createFrames(["war/h...

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

343. 2d粒子旋转时大小也会随着改变 [ 60%]

... 代码: Laya.loader.load("res/Particles/Tail.part", Laya.Handler.create(this, this.OnPariticleAssetsLoaded), null, Laya.Loader.JSON); OnPariticleAssetsLoaded(setting:Laya.ParticleSetting) { let sp = new Laya.Particle2D(setting); sp.pos(200, 200); sp.emitter.start(); sp.play(); Laya.stage.addChild...

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

344. Uncaught TypeError: Cannot read property '_tf' of null [ 60%]

...le(1,1);     Tween.to(image,{scaleX:0.5,scaleY:0.5},600,null,new Handler(this,tweenGuide,[image]),500); }   public function tweenGuide1(image:Image):void {    Tween.to(image,{x:100,y:100},600,null,new Handler(this,tweenGuide1,[image]),500); } ********************************************【End...

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

345. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 60%]

...OWN, spe, onMouseDown);             Laya.stage.on(Event.MOUSE_UP, this, onMouseUp);             Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp);   } private function onMouseDown(e:Event):void {             spe.startDrag(new Rectangle(0,0,800,800)); } 鼠标点击Sprite报...

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

346. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 60%]

... laya 引擎是2.5的      Laya.loader.load(cg_url,Laya.Handler.create(this,()=>{             let tur:Laya.Texture = Laya.loader.getRes(cg_url);             if(tur)img_cg.graphics.drawImage(tur)         }),null,Laya.Loader.IMAGE);    这段代码, 当 cg_...

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

347. 播放模型动画的时候出问题了 [ 60%]

...时候出问题了   //给男角色模型设定贴图动画 var manAni = this.roleMan.addComponent(SkinAnimations); manAni.url ="3d/man/hero.ani"; manAni.player.play();   附件 : --> 2019-02-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

348. 报错,这不是个构造函数 "StartPage is not a constructor" [ 60%]

... StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atla...

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

349. 移除ANI [ 60%]

... 但是 动画依然存在   private backindex():void{         this.removeSelf();        Laya.Scene.open("Gameindex.scene");   }       2019-12-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 ...

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

350. 微信小游戏播放音效无法连续反复播放 [ 60%]

...nd._musicAudio;       }else {     /*  if(MiniSound._audioCache[this.readyUrl]){         tSound=MiniSound._audioCache[this.readyUrl]._sound;         }else{*/         tSound=MiniSound._createSound();     //  } 改成这样就OK了 2018-08-20 0 0 分享 微博 ...

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