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

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

271. 在加载包含Animation的prefab后,动画没有显示 [ 71%]

...预制体之前先加载动画需要的图片资源,资源一般再 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

272. 微信小游戏图集卸载报错 [ 71%]

...,调用Laya.loader.clearRes(url)报错 然后整个游戏卡死 url=res/atlas/Mission.atlas Laya.loader.clearRes(url);  (在调用这个方法前图集已加载完成)   附件 : --> 2018-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

273. 加载UI为什么总是加载白底 [ 71%]

...色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

274. 微信开发者工具无法加载图集 [ 71%]

...开发者工具无法加载图集 发版启用文件版本管理后发现.atlas图集加载不会回调执行complete事件。 尝试1: 加载其他的普通图片资源(文件名带了hash码)能都正常。 尝试2: 把图集对应图片的文件名中的hash码删除(只处理.png图片,.atlas...

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

275. var 与 name 的详细区别是什么? [ 71%]

...认属性与repeat的区别 dispone和destory的区别 view和Dialog区别 atlas目录下.json文件与.atlas的区别 小游戏的后台切换事件名是什么?? 跑马灯滚动公告效果,详细一点,多谢 UI加载完成后无法获取控件的大小——超详细版问题 问题状...

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

276. IDE读取不了json中的汉字 [ 71%]

...个批量加载json文件,然后等这些文件统一加载完后回调 atlas目录下.json文件与.atlas的区别 ide compile的时候不会启动一个本地服务器吗? 问题状态 最新活动: 2017-04-05 10:35 浏览: 1269 关注: 2 人

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

277. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 71%]

...时间轴动画如何设置播放一次后消失? 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

278. Laya IDE横竖屏切换时,不断刷新 [ 71%]

...= '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

279. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 71%]

...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

280. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 71%]

...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