大约有 730 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
Laya_社区(632) Laya2.0_文档(49) Laya3.0_文档(29) laya_api(4) Laya_示例(4) Laya3.0_api(4) Laya2.0_示例(4) Laya2.0_api(4)
...预制体之前先加载动画需要的图片资源,资源一般再 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.clearRes(url)报错 然后整个游戏卡死 url=res/atlas/Mission.atlas Laya.loader.clearRes(url); (在调用这个方法前图集已加载完成) 附件 : --> 2018-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20180815
...色s Laya.stage.bgColor = "#ffffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super...
来源: Laya_社区 发布时间: 20181220
...开发者工具无法加载图集 发版启用文件版本管理后发现.atlas图集加载不会回调执行complete事件。 尝试1: 加载其他的普通图片资源(文件名带了hash码)能都正常。 尝试2: 把图集对应图片的文件名中的hash码删除(只处理.png图片,.atlas...
来源: Laya_社区 发布时间: 20180821
...认属性与repeat的区别 dispone和destory的区别 view和Dialog区别 atlas目录下.json文件与.atlas的区别 小游戏的后台切换事件名是什么?? 跑马灯滚动公告效果,详细一点,多谢 UI加载完成后无法获取控件的大小——超详细版问题 问题状...
来源: Laya_社区 发布时间: 20161202
...个批量加载json文件,然后等这些文件统一加载完后回调 atlas目录下.json文件与.atlas的区别 ide compile的时候不会启动一个本地服务器吗? 问题状态 最新活动: 2017-04-05 10:35 浏览: 1269 关注: 2 人
来源: Laya_社区 发布时间: 20170405
...时间轴动画如何设置播放一次后消失? Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-17 添加评论 免...
来源: Laya_社区 发布时间: 20180117
...= 'exactfit'; Laya.stage.screenMode = 'horizontal'; Laya.loader.load(['res/atlas/view.atlas'], Handler.create(this, initGame)); Laya.timer.frameOnce(1, this, function () { Laya.stage.on(Event.RESIZE, this, function () { window.location.reload(); }) }) 2018-04-16 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180416
...ild(sp); //显示一个动画 var ani:Animation = new Animation(); ani.loadAtlas("res/fighter.atlas"); ani.play(); ani.pos(400, 200); sp.addChild(ani); Laya.stage.on("keydown", this, onKeyDown); Stat.show(); } private function onKeyDown(e:Event):void { if (e.keyCode === Keyboard.H) { sp.visible = fa...
来源: Laya2.0_文档 发布时间: 20210714
...ild(sp); //显示一个动画 var ani:Animation = new Animation(); ani.loadAtlas("res/fighter.atlas"); ani.play(); ani.pos(400, 200); sp.addChild(ani); Laya.stage.on("keydown", this, onKeyDown); Stat.show(); } private function onKeyDown(e:Event):void { if (e.keyCode === Keyboard.H) { sp.visible = fa...
来源: Laya2.0_文档 发布时间: 20200929