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

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

751. 加载配置json文件不成功!json文件放在bin目录下的 [ 58%]

...s","res/atlas/cartoon.atlas","res/atlas/miner.atlas","gameConf.json"],Laya.Handler.create(this,onloaded),null,null); 2018-07-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 陈帅 赞同来自: 文件目录如...

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

752. 无法触发浏览器文件上传框 [ 58%]

...ng'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = new Laya.Button(sk...

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

753. loadAnimation无法获取动画文件 [ 58%]

.../monster/monsterA/move.atlas"         ];   Laya.loader.load(aniArr, Handler.create(this, onAni), null, Loader.ATLAS);   private function onAni():void {     var role:SimpleRole = new SimpleRole();     Laya.stage.addChild(role); }       SimpleRole类:   public function SimpleRole() ...

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

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

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

755. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 58%]

...ader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));

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

756. ts如何通过文件集加载的方法预加载声音文件,然后再调用 [ 58%]

...接从缓存获取。 Laya.loader.load([{url:"xxx.mp3",type:Loader.SOUND}],Handler.create(this,onComped)) 2016-12-13 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 feini 相关问题 两个对象new了一个相同的对象,调用第一...

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

757. 骨骼动画文件.sk 怎么用Laya.loader.load去预加载 [ 58%]

...同来自: 可以预加载,试下下面的方式:Laya.loader.load(url, Handler.create(this, onComplete), null, Loader.BUFFER); 2017-05-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 hhj2357620 相关问题 2.0一不小心删了bin...

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

758. discard property,please use transform's property instead [ 58%]

... "res/plane.lh",             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoop(1, null, function () {             Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion...

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

759. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 58%]

...,     { url: "res/Basics.json", type: Laya.Loader.BUFFER }     ], Laya.Handler.create(this, this.onLoaded)); }  onLoaded(): void {     console.log('===================ss');      console.log('sssss', fgui.GRoot.inst.displayObject);     Laya.stage.addChild(fgui.GRoot.inst.displayObject); ...

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

760. Dialog中的closeHandler 并没有回调按钮name 是不是BUG? [ 58%]

Dialog中的closeHandler 并没有回调按钮name 是不是BUG? 版本:1.7.2beta   测试用例:http://layaair.ldc.layabox.com/demo/?UI_Dialog   里面加一段 dialog.closeHandler = Handler.create(this,function(name){ alert(name) }) 测试结果 name 并没有被传值   2017-03-30 添...

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