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

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

511. 微信小游戏开放域不能使用Tab组件和Scorllbar? [ 71%]

...样的图片可以使用没问题,到了开放域,会提示 lose skin res/vscroll$bar.png lose skin res/tab.png 请问这怎么回事?? 同个目录下的其他图片也可以使用 2018-07-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

512. 背景音乐播放内存后续问题 [ 71%]

...候,这样子调用 SoundManager.stopAll(); SoundManager.destroySound("res/sound/blade in my heart Short JUNkaraoke_M.mp3"); SoundManager.playMusic("res/sound/BGM01.m4a"); 但是内存也降不下去,两个背景音乐来回切换的话,会内存不断上涨 示例中点击左上角那两个 ...

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

513. 图片资源引用 [ 71%]

....png │   ├── index.html │   ├── libs │   ├── res ├── happyfarm.laya ├── jsconfig.json ├── laya │   ├── assets │   ├── pages │   └── styles.xml ├── libs │   └── LayaAir.d.ts └── src ├── BangzhuVi...

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

514. 请问如何给ui下所有的button加一个点击监听事件? [ 71%]

...断是不是button来做。 Laya.stage.on(Laya.Event.CLICK, this, function(res:Laya.Event){ if (res.target instanceof Laya.Button){ // click button } }) 2018-12-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 183*****288 相关问题 ...

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

515. 播放声音出错,求指教 [ 71%]

...接 提交 6 个回复 Laya_Aaron 赞同来自: shaotianhk 放到 bin/h5/res目录下 2018-03-06 1 0 分享 微博 QZONE 微信 helianchu 赞同来自: shaotianhk 音乐特效是bin/h5/res/下面的 2018-03-06 1 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你mp3路径对吗 2018-03-06 0 0 ...

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

516. 2.3.0截屏问题 [ 71%]

... destWidth: 100, destHeight: 100, fileType: "png", quality: 1.0, success: (res) => { console.log(res.tempFilePath); } }) }   报的是 gameThirdScriptError ImageData is not defined ReferenceError: ImageData is not defined     at Function.RunDriver.drawToCanvas (http://127.0.0.1:27664/game/libs...

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

517. [LayaAir2]LayaAir2 打包微信小游戏,音频播放问题 [ 71%]

...lib]] statLocalAudio fail {"errMsg":"stat:fail no such file or directory \"res/sounds/Buttonsound.ogg\""},但是这个路径是存在于res目录的,我使用Laya.loader.load 重新加载,加载也成功了,但是使用Laya.SoundManager.playSound 播放的时候仍然提示statLocalAudio fai...

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

518. 资源分类问题,无法显示资源。 [ 71%]

...文件,以及编译后多了两个文件:   /项目名字 /bin/h5/res/atlas/test.atlas 和  /项目名字 /bin/h5/res/atlas/test.png。   我不知道laya到底是个什么原理 在存储资源,还不带认路的。认路也是偏的,谁知道,laya打包和非打包资源在项目...

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

519. 用微信的方法获取openID和会话秘钥的方法 [ 71%]

...&js_code="+code+"&grant_type=authorization_code", success:function(res) { console.log("获取到openid为"+res.data.openid) } }) 2018-09-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复   赞同来自: ...

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

520. 骨骼动画-多纹理 [ 71%]

...f"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } functio...

来源: Laya_示例 发布时间: 20251209