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

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

411. 图集打包与动画 [ 53%]

...听到的。第二问题,额~~应该是 loadAnimation(url:String, loaded:Handler = null, atlas:String = null):Animation 方法的问题。在进入游戏的时候就加载了动画需要的图集,不过json文件的。按照示例的加载动画,这个时候loadAnimation();我应该传入url...

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

412. 关于图片加载路径的问题 [ 52%]

...reIcon.loadImage("laya/assets/res/image/fireIcon.png",0,0,200,200,new Laya.Handler(this,onloadImage)); function onloadImage(){ console.log('图片加载结束'); Laya.stage.addChild(fireIcon); }   资源的结构为: |-.laya |-bin |-laya   |-assets     |-res       |-image         |-fireIc...

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

413. 使多个时间轴动画 demo.ani(0,true,'name')失效 [ 52%]

...行onLoaded回调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl);...

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

414. timeline 类动作节点回调 [ 52%]

... 能不能定时器根据时间改变节点Pie的起始角度? Laya.Handler.create 回调 问题状态 最新活动: 2018-10-21 16:15 浏览: 2826 关注: 4 人 系统正在更新请不要关闭。 • 2018-07-18 19:25 没错是这个意思, 但是这个实在太繁琐了。没有cocos的简...

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

415. QQ小游戏开发者工具环境下,已经被本地缓存的图片的加载回调不触发的问题 [ 52%]

...刷新过后,问题出现了,Laya.loader.load("res/atlas/comp.json", Handler.create(this, onLoaded), null, Loader.ATLAS);这里的onLoaded函数不会被触发,导致后续界面不显示。如果点QQ小程序开发者工具里的清理缓存,界面又再次可以显示,再刷新的话,...

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

416. Timer.clear 方法有问题 [ 52%]

...清理 石圣 • 2018-12-03 11:19 是的 如果改一下Timer里面存储handler的数据结构就可以实现了。这种需求很正常啊 不知道官方为啥说要避免这种写法。可能移除多个相同域的相同方法需要一个遍历操作,性能损耗比较大? 伯恩 • 2018-...

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

417. 2.2.0 bata3版本,new Laya.Particle2D 报错 [ 52%]

...然后在游戏中创建就会报错。 Laya.loader.load("xxx.part", Laya.Handler.create(this, (settings: Laya.ParticleSetting) => { let particle = new Laya.Particle2D(settings); }), null, Laya.Loader.JSON); 附件 : --> 2019-08-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

418. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 52%]

...te(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.height/2-logo.height/2); })...

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

419. 加载时间轴动画报错 [ 52%]

...ni = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Cannot read property '_create' of null     at Animat...

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

420. 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 [ 52%]

...果 Laya.loader.load("https://piggy.q1.com/res//atlas/images.atlas", Laya.Handler.create(this, this.onLoaded2), null, Laya.Loader.ATLAS); // Laya.loader.load("map/tile_map.png");   2018-05-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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