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

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

481. Laya如何分组管理资源加载 [ 62%]

...son。这些资源改动了,不是又要一个个去对一下。   Laya.loader.load(["res/atlas/test1.atlas","res/atlas/test2.atlas","res/atlas/test3.atlas","test/test.json",....]); 各位,你们是怎么做的。 2019-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

482. 背景音乐音效问题 [ 62%]

... var lobbyRes:Array<any> = [ {url: "Lobby/Sound/BG309.mp3",type:Laya.Loader.SOUND}, } Laya.loader.load(fightLandlordRes, Laya.Handler.create(this, this.resLoaded)); Laya.SoundManager.playMusic("Lobby/Sound/BG309.mp3"); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

483. 急 苹果手机资源加载超过40M浏览器直接自动刷新页面 [ 62%]

...览器直接自动刷新页面 如题,利用Laya.Sprite3D.load或者Laya.loader.create加载资源,资源是.lh文件(人物模型动画骨骼贴图等),每个角色lh文件及其包含的关联资源大约3M左右,代码中加载15个不同的角色资源,在android手机上没有问...

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

484. 关于mouseThough=true的问题 [ 62%]

...); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.st...

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

485. 图集制作与使用详解(JavaScript-IDE篇(JS)-使用IDE创作) [ 62%]

...的示例代码为: ```javascript //atlas方式图集使用示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ```   `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图...

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

486. 图集制作与使用详解(TypeScript-IDE篇(TS)-使用IDE创作) [ 62%]

...的示例代码为: ```typescript //atlas方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Laya.Handler.create(this, this.onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为...

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

487. 图集制作与使用详解(ActionScript-IDE篇(AS3)-使用IDE创作) [ 62%]

...的示例代码为: ```typescript //atlas方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置...

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

488. 如何读取加载序列的分组? [ 62%]

如何读取加载序列的分组? LoaderManage->load()有个参数是:group分组,使用加载序列后,然后监听到加载完毕后,怎么读到这个分组? 就像实例这个   附件 : --> 2018-03-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...

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

489. 3D开启多线程报错 [ 62%]

3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true;   加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh");   报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...

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

490. 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? [ 62%]

...红框内的修改  if (Browser.onMiniGame){ console.log(1); tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ console.log(2); tSound=new soundClass(); tSound.load(url); if (Browser.onMiniGame){ Loader.cacheRes(url,tSound); } }; 2个if判断...

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