大约有 383 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0037 秒)
Laya_社区(319) Laya2.0_文档(40) Laya3.0_文档(12) Laya2.0_示例(4) Laya_示例(4) Laya3.0_api(2) Laya2.0_api(2)
...Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: ...
来源: Laya_社区 发布时间: 20170803
...ader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); })(); function createAnimation() { var ani = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.pl...
来源: Laya_示例 发布时间: 20240929
...:hero_down。发布! 2.hero.ani路径是:bin\ani\hero.ani 3.资源atlas在:bin\res\atlas\war.atlas 4.代码如下 : IDE版本:1.7.19.1beta tsc 版本:2.1.5 附件 : --> AirWar.zip 2018-08-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180807
...onent("ScaleButton", ScaleButton); Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame)); } private loadGame(): void { var resArray = [ { url: "res/atlas/lobby/create_room.atlas", ...
来源: Laya_社区 发布时间: 20181208
...: 问题已经找到了,是UI编辑器F12导出的时候打包的大图是atlas后缀格式造成的,而默认例子里面加载的是json格式的: Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS); 所有导致了图集位置错乱,麻烦技术修...
来源: Laya_社区 发布时间: 20171110
Laya.Animation.loadAtlas 这个方法是有问题吗 我的途径路径是, res/atlas/gun1.atlas. 然后加载这个资源的时候, 报错 Not recognize the resource suffix 版本是laya 1.7.21 2019-01-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20190123
...: 2 人 有点感人 • 2019-12-03 11:11 图片加载路径应该是res/atlas/test-96f7a10df7.png, 而在微信环境加载的路径是res/atlas/test.png,没有md5这个后缀,加载不到这个图片。 176*****376 • 2019-12-03 11:18 我也是同样的问题 176*****376 • 2019-12-03 15:04 ...
来源: Laya_社区 发布时间: 20191202
...预制体之前先加载动画需要的图片资源,资源一般再 res/atlas里面 代码如下 Laya.loader.load(["res/atlas/zombie/z2.atlas"],Laya.Handler.create(this,function(){ Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab =...
来源: Laya_社区 发布时间: 20201022
...如何清理预加载的图集资源??? 通过 Laya.loader.load("res/atlas/公告.json", Laya.Handler.create(null, onLoad), null, Laya.Loader.ATLAS); 这样加载的图集资源怎么清除掉??? 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20180124
...oad(); });当然因为按钮都是小元素, 默认情况下会被打包成atlas文件 需要在代码执行前先下载完毕这个图片集 Laya.loader.create("res/atlas/simbols.atlas",Laya.Handler.create(this,function(){ //创作你的代码 }); 2018-01-16 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20180116