大约有 553 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)
Laya_社区(514) Laya2.0_文档(17) Laya3.0_文档(12) Laya3.0_api(4) Laya2.0_api(2) laya_api(2) Laya_示例(1) Laya2.0_示例(1)
Loader.BUFFER的问题 我现在要下载一个解压包进行解压,采用的是以下语句: Laya.loader.load("config.zip", Laya.Handler.create(this, this.configLoaded,["config.zip"]), null, Laya.Loader.BUFFER, 1, true) private configLoaded(url):void { var data:Object = Laya.loader.get...
来源: Laya_社区 发布时间: 20171218
...sCfgList 是一组资源类似 { url: CONFIG_MONSTER_LEV, type: Laya.Loader.JSON }, { url: CONFIG_TERRAIN, type: Laya.Loader.JSON }, { url: CONFIG_FORMATION_TEMPLATE, type: Laya.Loader.JSON }, { url: CONFIG_MOVE_PATH, type: Laya.Loader.JSON }, { url: CONFIG_LEVEL, type: Laya.Loader.JSO...
来源: Laya_社区 发布时间: 20170808
swf预加载问题 loader不能用于swf的预加载,于是用MovieClip的load方式做了个。不知道会不会有问题。package util { import laya.ani.swf.MovieClip; import laya.events.Event; import laya.events.EventDispatcher; import laya.net.Loader; import laya.utils.Handler; public cl...
来源: Laya_社区 发布时间: 20161213
...lstatp-toutiao.com/obj/ad.union.api/e285dd263aee2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 n...
来源: Laya_社区 发布时间: 20211026
...oadArr:Array = new Array; loadArr= [{url: "res/atlas/hall_new.json", type: Loader.ATLAS}, // {url: "res/atlas/help.json", type: Loader.ATLAS}, // {url: "res/atlas/shop.json", type: Loader.ATLAS}, // {url: "shmjAssets/扣牌文字背景.png", type: Loader.IMAGE}, //这张图有问题。 ]; Laya.loa...
来源: Laya_社区 发布时间: 20180301
...载Spine动画数据资源(json文件),注意一定要设置为Laya.Loader.SPINE类型,否则不会把json认为是SPINE资源 Laya.loader.load("girl2/mix-and-match-pro.json", Laya.Loader.SPINE).then(() => { // 添加Spine渲染器组件到精灵节点上 this.spine = this.owner.addCompon...
来源: Laya3.0_文档 发布时间: 20251128
Loader可以加载网络资源吗? QQ玩一玩有10m包体限制,想把图集放服务器上,有接口吗 2018-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 可以加载网络资...
来源: Laya_社区 发布时间: 20180330
..._female_01-obj001.lm", "model/player/003/char_car_01-obj001.lm" 通过Laya.loader.load加载完后不能正常使用,没有Mesh的类型可以指定。 是要用Laya.loader.create才行么? Laya.loader.create(urls, Handler.create(this, this.onAssetLoaded), Handler.create(this, this.onLoading, nu...
来源: Laya_社区 发布时间: 20161217
...享 微博 QZONE 微信 cuixueying 赞同来自: package { import laya.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():v...
来源: Laya_社区 发布时间: 20170802
json文件无法加载 Laya.loader.load("lang/zh_CN/scripts/base.json", Handler.create(this, this.onLoaded), null, Loader.JSON); 加载这个json文件 没办法加载进来 2017-12-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...
来源: Laya_社区 发布时间: 20171213