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

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

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

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

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

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

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

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

273. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 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

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

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

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

277. 读取json对象 [ 71%]

...Laya.loader.load("test.json", Handler.create(this, onLoaded), null, Loader.ATLAS);             //var json:JSON = Loader.getRes("test.json");             //trace(json);         }                      function onLoaded():void {             var json:JSON ...

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

278. 子容器的事件问题 [ 71%]

...问题 // 程序入口 Laya.init(800, 800); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); let vhvt: ViewHeadViewTest = new ViewH...

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

279. 背景音乐播放结束就报这个错 有人知道么 [ 71%]

...停止正在播放的背景音乐 IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 【3D动画播放】 关于islooping覆盖问题,想请教一下 访问服务器上的H5,播放具有中文名的音乐时报错 问题状态 最新活动: 201...

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

280. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 71%]

...indow.wx.onMessage(function(data){//微信接受信息 if(data.url == "res/atlas/test.atlas" || data.url == "test/1.png" ||data.url == "test/2.png"||data.url == "test/3.png"){ mark ++; console.log("------data.url:" + JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.l...

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