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

大约有 37 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0044 秒)

1. 龙骨动画如何预加载 [ 100%]

...接 提交 1 个回复 cuixueying 赞同来自: 预加载资源请用Laya.Loader.load,卸载资源请用Laya.Loader.clearRes,具体示例请参考:http://layaair.ldc.layabox.com ... leton 2017-03-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

2. 加载龙骨动画出报错Uncaught getUint16 error - Out of bounds [ 98%]

...链接 提交 1 个回复 微笑 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER);  在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

3. 人物行走图动画 [ 98%]

...从第二张图片(迈出左脚的那张图片)开始的。   还有Loader.ATLAS是static] 图集类型,加载完成后返回图集json信息(并创建图集内小图Texture)。      load(url:String, type:String = null, cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPat...

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

4. Laya.loader.load和new Laya.Loader区别? [ 97%]

Laya.loader.load和new Laya.Loader区别? let json:any = Laya.loader.getRes(this._data.url); if(json) { return; } let load:Laya.Loader = new Laya.Loader(); 这么写 频繁加载会一直报资源重复加载 但是我 Laya.loader.load(xxxxxxxxx) 频繁加载就没事 请问这两者的区别 我...

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

5. 预加载2D骨骼动画(Skeleton) [ 96%]

...链接 提交 1 个回复 Monica - 知识达人 赞同来自: 通过Laya.loader.load进行预加载即可 2017-11-01 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xxing22657 相关问题 加载到舞台的3D模型不显示贴图 IDE1.7....

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

6. 分享:Dragonbones/Spine的换肤操作 [ 96%]

...xture 准备好的图片head3.png 放置资源目录下 获取texture Laya.loader.load('head3.png',Handler.create(this,onTextureLoaded)); } private var texture:Texture; private function onTextureLoaded():void { texture=Loader.getRes('head3.png'); }整体代码如下package { import laya.ani.bone.Ske...

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

7. Laya.loader.create失败 [ 95%]

Laya.loader.create失败 官方加载说明底部预加载说明:https://ldc2.layabox.com/doc/?nav=zh-ts-4-3-1    上面的例子Scene.load()方法是资源的异步加载,有时候3D的资源比较大,需要预加载来来提升首屏的体验。这时候我们可以用加载器预加载...

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

8. Laya.SoundManager.playSound 无法播放出音效 [ 91%]

...不能正常播放,也没有任何错误提示 然后尝试先调用Laya.loader.load("sfx/hit01.mp3",new Laya.Handler(this,this.onBgmComplete),null,Laya.Loader.SOUND);然后在onBgmComplete的回调里面再调用播放,就会提示 [warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/h...

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

9. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 90%]

...画在pc模拟器播放OK在手机端不显示 loaded : function(){ this.loader = Laya.loader; this.loader.retryNum = 0;//无加载重试 this.urls = ['imgdebris/imgdebris.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.loader.l...

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

10. layabox加载fairygui发布的二进制文件报错 [ 85%]

...游戏加载不了,路径没问题,麻烦看下   加载代码 Laya.loader.load([             { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE },             { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE},             { url:"res/Bag.json", type:Laya.Loader.BUFFER}  ...

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