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

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

341. 有没有SoundChannel的示例? [ 63%]

...SoundChannel的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isSt...

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

342. 对象池使用报错 [ 63%]

...vate Board = new GiftBoard(); let board = Laya.Pool.getItemByClass("board",this.Board); 报下面这个错  cls is not a constructor 2017-12-11 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 ...

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

343. TiledMap制作横板地图 报错 [ 63%]

...图,但是在试着导入游戏阶段报错。 以下是导入脚本。 this.map=new Laya.TiledMap(); this.map.createMap("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var...

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

344. playSound和playMusic结束时候有异常抛出 [ 63%]

...usic/Music_start.mp3",                      Laya.Handler.create(this, this.onLoadFinished));     }     onLoadFinished()     {         Laya.SoundManager.playMusic("res/music/Music_start.mp3", 1);     } } new GameMain();   -------------------------------------------------------...

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

345. 切换场景编辑器时 Laya3D init error must support webGl [ 63%]

...案是:在LayaAirIDE根目录\resources\app\out找到main.js,打开在this.app.once("ready")这一行上面加一行:this.app.commandLine.appendSwitch("ignore-gpu-blacklist");保存,重启IDE再试试(我是有效的 ) 2019-04-13 1 0 分享 微博 QZONE 微信 sata121 赞同来自: 我也...

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

346. 打包安卓Android studio黑屏 [ 63%]

...HX0217401012320 Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/om.layabox.tes: Reinit property: dalvik.vm.checkjni= false D/ZrHung.AppEyeUiProbe: AppEyeUIP created. D/ActivityThread: Attach th...

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

347. Laya.loader.create中的progress回调好像不准确? [ 63%]

....create("scenes/LayaScene_yueren/yueren.ls", Laya.Handler.create(this, function () { //complete func console.log("Scene loaded"); isLoaded = true; }), Laya.Handler.create(this, function (pro) { if (debug) console.log("Loading progresss : " + pro); }, null, false), Laya....

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

348. IphoneX适配 [ 63%]

...Ratio, Browser.clientHeight * Browser.pixelRatio, WebGL); }else{ Laya.init(this.SCENE_WIDTH, this.SCENE_HEIGHT, WebGL); } 苹果X适配 2018-05-22 1 1 分享 微博 QZONE 微信 w1114367261 赞同来自:  目前还没有针对x的手机做针对性适配,目前适配方式需要与ide中的父物...

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

349. [LayaAir3]微信小游戏 高性能+模式文字显示不全 [ 62%]

...用getImageData了         //TextRender.isWan1Wan = true;         this.charRender = new CharRender_Canvas(2048, 2048, TextRender.scaleFontWithCtx, !TextRender.isWan1Wan, false);         TextRender.textRenderInst = this;         ILaya.Laya['textRender'] = this;   必须修改bugIOS ...

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

350. 真机测试时 有3d模型的界面尺寸就会错乱 [ 62%]

...句话  界面布局就会乱   请问是什么问题呢 let { x, y } = this._modelPnl.localToGlobal(new Laya.Point(0, 0))         let { x: x2, y: y2 } = this._modelPnl.localToGlobal(new Laya.Point(this._modelPnl.width, this._modelPnl.height))         let w = x2 - x         le...

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