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

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

401. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 54%]

...lor = "#ffcccc"; var div:any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(...

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

402. 粒子释放问题 [ 54%]

...../../"; Laya.loader.load("res/particles/GravityMode.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })();   function onAssetsLoaded(settings) { sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp);   sp.x = Laya.stage.width / 2; sp.y = Laya.stage....

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

403. JS的WebGL模式下使用Laya.Video报跨域错误 [ 54%]

...resource/2.webm'; var video = new Laya.Video(); video.on('loadedmetadata', this, function() { console.info(video.width + ',' + video.height); Laya.stage.addChild(video); video.play(); }); video.load(video_url); Laya版本是1.7.4Beta Chrome 58下运行报错   laya.device.js增加跨域属性后解...

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

404. [LayaAirIDE3]xcode切入切出声音不播放 [ 54%]

...,导致背景声音不播放问题。  Laya.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.stage.on(Laya.Event.FOCUS, this, this.onFocus);  private onBlur() {         // 暂停所有需要停止的逻辑         console.log("onBlur");         SoundManager.Instance.pauseBGM();   ...

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

405. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 54%]

...:"res/Public@sl4615.mp3",type:laya.net.Loader.SOUND} ],Laya.Handler.create(this,onLoaded));  /*登录界面*/ var resArray=[ {url:"res/LoginView.fui",type:laya.net.Loader.BUFFER}, {url:"res/LoginView@atlas0.png",type:laya.net.Loader.IMAGE} ]; var loadcount=resArray.length; function onLoaded() { con...

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

406. 骨骼Label事件,多接收一次 [ 54%]

...AniNameByIndex(0)) ske.play("atk",false) ske.on(Laya.Event.LABEL,this,function(e:any) { CUtil.Log("发动攻击:"+e.name+ske.player.currentKeyframeIndex) }); 就这几行代码,sk文件上传不了 qian • 2018-03-15 15:29 我现在没有sk文件,,, tyl925450909 • 2018...

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

407. 播放一个ani的动效报错parse animation fail:ani2,empty animation created [ 54%]

...           girlsMc.play(0,true,"ani2");             this.cmc.addChild(girlsMc); 附件 : --> 2019-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ayiui4566 赞同来自: 靠,动效名...

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

408. TypeError Uncaught TypeError: Object #<error> has no method '_addReference' [ 54%]

...fined错误 IDE不能运行调试提示:Chrome error: Error:... Warning!,this class[MiniAdpter] already exist: Object {init: } Error: asBitmap no size! 问题状态 最新活动: 2018-03-09 10:29 浏览: 764 关注: 2 人

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

409. Laya.timer.loop调用后出现Cannot read property 'loop' of null [ 54%]

...loop调用后出现Cannot read property 'loop' of null Laya.timer.loop(100,this,function():void{trace(90890789078);}); 报错: Uncaught TypeError: Cannot read property 'loop' of null at new LayaUISample (LayaUISample.max.js:394) at LayaUISample.max.js:29731 at LayaUISample.max.js:29733 2017-02-14 ...

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

410. ide发布web后报错 [ 53%]

ide发布web后报错 Uncaught TypeError: this.preinitialize is not a function     at i (laya.ui.min.js:1)     at i (laya.ui.min.js:1)     at i (laya.ui.min.js:1)     at GameUI (layaUI.max.all.js:9)     at Function.&lt;anonymous&gt; (laya.core.min.js:1)     at t (main.min.js:4)     at...

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