大约有 576 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
Laya_社区(502) Laya2.0_文档(41) Laya3.0_文档(15) laya_api(4) Laya3.0_api(4) Laya2.0_api(4) Laya2.0_示例(3) Laya_示例(3)
本人想做个批量加载json文件,然后等这些文件统一加载完后回调 看了Loader类的用法好像只能加载单一文件,LoaderManager用于批量加载可官网没有DEMO,并不知道怎么用。有大佬能给出个LoaderManager的使用示例么。或者再详细能否讲...
来源: Laya_社区 发布时间: 20180518
... super(); } //初始化预加载数据 public m_initData(url:string,atlas:boolean,atlasPath?:string){ (atlas===void 0)&& (atlas=false); this['_url']=url=Laya.URL.formatURL(url); ...
来源: Laya_社区 发布时间: 20180615
...下是否是如下原因导致 使用URL.basePath方法后,再使用load加载本地路径,都会自动加上URL.basePath里的网址。这样就实现了本地与网络加载的结合。 这样就结束了吗?并没有! 按刚刚的写法,res/layabox.png明明已经上传到微信小游...
来源: Laya_社区 发布时间: 20190528
...的时候打包的大图是atlas后缀格式造成的,而默认例子里面加载的是json格式的: Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS); 所有导致了图集位置错乱,麻烦技术修下这个bug. 建议ui编辑器默认就导出...
来源: Laya_社区 发布时间: 20171110
...次方图集和非二的幂次方图集区别在哪? IDE1.7.8 json图集加载问题 骨骼动画播放完后的回调时间 红米K20pro 多个手指同时按下就会报这个错 object has in SimpleSingletonList 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. 图集打...
来源: Laya_社区 发布时间: 20180808
[LayaAir3]Laya3.2.7版worker加载图片404 分析代码发现,给worker传入的url变为atlas/comp/button.png 于是worker得到的url是http://localhost:18090/libs/atlas/comp/button.png,所以出现了404正确的url应该是http://localhost:18090/atlas/comp/button.png 附件 : --> Laya3.2_....
来源: Laya_社区 发布时间: 20250701
...构建和发布项目 图集打包找不到图集文件 IDE1.7.8 json图集加载问题 问题状态 最新活动: 2021-02-01 14:30 浏览: 147 关注: 2 人 185*****515 • 2021-02-01 18:31 thks
来源: Laya_社区 发布时间: 20210128
...调用谷歌浏览器运行时,显示不出图片。。。应该是资源加载时出了问题?求教 firstGame.max.js:9742 XMLHttpRequest cannot load file:///F:/Laya/Project/firstGame/bin/h5/res/atlas/comp.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, ...
来源: Laya_社区 发布时间: 20170108
... private function start():void { //加载swf图集资源,只需要加载image.json即可,具体结构请参考附件 Laya.loader.load([{url: "res/atlas/flicker/image.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); ...
来源: Laya_社区 发布时间: 20170608
...创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(0,true); } 报错: lost skin: move/jiantou2.png ,you ...
来源: Laya_社区 发布时间: 20171012