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

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

101. IPHONE机,游戏之前有声音的,现在safari和CHROME上没有声音,UC上有 [ 74%]

...声音: Laya.SoundManager.playMusic("sounds/fish.mp3", 1, Handler.create(this, this.onComplete)); //Laya.SoundManager.playSound("sounds/fish.mp3", 1, Handler.create(this, this.onComplete),Laya.AudioSound); 后来在html里加了一个audio标签,看看原始的audio能不能播。 <audio src=...

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

102. Cannot read property 'load' of null [ 74%]

...tatic s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMa...

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

103. 游戏铺满固定大小容器,火狐和谷歌正常,edge会有滚动条? [ 74%]

...享 微博 QZONE 微信 156*****215 赞同来自: Laya.timer.frameLoop(1,this,()=>{                if(this.lastClientWidth!=Laya.Browser.clientWidth){                     if(Laya.Browser.clientWidth>Laya.Browser.clientHeight){                  ...

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

104. 升级2.0以后,部分浏览器的兼容性很差 [ 74%]

...ne { constructor() { super(); } createChildren() { super.createChildren(); this.loadScene("test/TestScene"); } } UC指这行报错,这个都是编译后的代码 addScore(value = 1) { this._score += value; this.scoreLbl.changeText("分数:" + this._score); if (this._control.c...

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

105. window 下接收不到事件,Click,EnterFrame都接受不到 [ 74%]

...: 2 人 黄进 • 2018-06-11 17:23 啥意思? Content.once(Event.CLICK,this,OnMouseDown); Content.once(Event.MOUSE_OUT,this,OnMouseDown); Laya.stage.once(Event.FRAME,this,onEnterFrame); 这样事件都监听不到? Laya_Aaron • 2018-06-11 17:52 你描述的我也不懂是什么意思,只能...

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

106. layacmd mac 系统安装不上,急 [ 74%]

...pm ERR! npm ERR! Failed at the electron@1.8.6 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2018-05-08T04_07_13_726Z-debug.log   环境: mac...

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

107. 【LIST无法拖动】参照官方实例做的 [ 74%]

...selectEnable = true;         list.selectHandler = new Handler(thisthis.onSelect);         list.renderHandler = new Handler(thisthis.updateItem);                  // 设置数据项为对应图片的路径         var data: Array<String>...

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

108. TypeScript 泛形方法如何传TYPE? [ 74%]

...ComponentByType(Laya.Animator); if (element!=null) { return element; }else this.GetComponetInChild(node._childs[index],);   } } 如何写成泛型方法呢???编译不通过 GetComponetInChild<T>(node:laya.display.Node):T { // var s:=typeof(Laya.Animator); for (var index = 0; index < nod...

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

109. IOS Native工程,apploader.js报错 [ 74%]

...ring(shader.ps, true); shader.conch_id = shader.id; } _.needsz(68); _.wu32(this.id); _.wu32(25); _.wu32(ib.conch_id); _.wu32(vb.conch_id); _.wu32(1); _.wu32(eleNum); _.wu32(iStart); _.wu32(img.imgId); _.wu32(shader.id); var uv = texture.uv; _.wf32(mat.a); _.wf32(mat.b); _.wf32(mat.c); _.wf32(mat.d);...

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

110. 真机下运行帧率不稳定 [ 74%]

...题  class Scene_Test { constructor() { super(); Laya.timer.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的信息。   请问有人碰到过...

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