大约有 307 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(291) Laya3.0_文档(6) Laya3.0_api(3) Laya2.0_文档(3) laya_api(1) Laya_示例(1) Laya2.0_示例(1) Laya2.0_api(1)
...引擎 Laya.init(600, 400); // 预加载动画需要用到的资源 Laya.loader.load("res/atlas/fly.json", Laya.Handler.create(this, onAssetLoaded), null, Laya.Loader.ATLAS); function onAssetLoaded() { var ani=new Laya.Animation();//创建animation实例 ani.loadAnimation('Ani.ani');//加载IDE制...
来源: Laya_社区 发布时间: 20170522
... this.init(); } init():void{ Laya.init(800, 700, Laya.WebGL); Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } onLoaded(){ console.info("onLoaded"); this.tiledMap = new Laya.TiledMap(); this.tiledMap.createMap("desert.js...
来源: Laya_社区 发布时间: 20171125
几个加载同一资源只有一个回调 在多个地方同时使用loader load同一资源 为啥只返回最后一次的回调函数? 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 ckp0799 赞同...
来源: Laya_社区 发布时间: 20180322
...ar assets:Array = []; assets.push( { url:"protobuf/user.proto", type:Loader.TEXT } ); assets.push( { url:"protobuf/bag.proto", type:Loader.TEXT } ); Laya.loader.load(assets, Handler.create(this, onAssetsLoaded)); 首先确认下类型是为TEXT吗,如果这样写就是...
来源: Laya_社区 发布时间: 20161223
如何解析json文件并获取某对象值? private jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经...
来源: Laya_社区 发布时间: 20171016
...止工作 unity的坐标和旋转转换到laya需要做什么运算 请问Loader.load支持支持swf格式的预加载吗? 请问Laya支持什么样的swf,我运行公司美术给的swf,屏幕一片黑 龙骨动画转换失败 Cannot read property 'name' of undefined layabox 3d格式转换 的...
来源: Laya_社区 发布时间: 20190402
...上测试加载服务器资源 URL.basePath = "http://212.xx.xx.xx/"; Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,loadComplete)); loadComplete(){显示自己的ui}; 项目设置选择不校验合法域名。(我没有配置域名,用IP可以吗?) 发现comp.atlas是加载下...
来源: Laya_社区 发布时间: 20190116
... alive.push({url:"res/FGUIMain/Common_atlas0.png", type:Laya.Loader.IMAGE}); Laya.loader.load(alive, Laya.Handler.create(this, this.LoadFinish)); } private LoadFinish(success:boolean):void { if(success) { ...
来源: Laya_社区 发布时间: 20210618
...存里,如何画在画布上 atlas目录下.json文件与.atlas的区别 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 问题状态 最新活动: 2018-01-18 10:32 浏览: 914 关注: 2 人
来源: Laya_社区 发布时间: 20180118
...r参数无效 请教下微信小游戏的内存和数据缓存? 请问下loader如何强制加载一个文件,避免浏览器的缓存 请问 《学习开发HTML5游戏《打地鼠》(LayaAir引擎)TS》的视频教程是否有配到代码下载? 请问粒子,shader,动画缓存的优...
来源: Laya_社区 发布时间: 20200111