大约有 446 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
...看下上面的链接! JianHao • 2017-04-18 10:59 //加载图集 Laya.loader.load("res/atlas/hero.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) //先把四张小图拿出来 var hero_down1=Laya.loader.getRes("hero/hero_down1.jpg"); var hero_down2=Laya.loade...
来源: Laya_社区 发布时间: 20170330
关于资源加载Laya.loader的问题 目前laya加载资源一般是用这种处理方式: Laya.loader.load(res, new Handler(caller, callBack)); 这里隐藏了一个问题,就是caller 被 Laya.loader 内某个成员持有引用,加载完成触发callBack后才释放。 如果网络较差...
来源: Laya_社区 发布时间: 20180510
...行报错: TypeError: Cannot read property 'load' of null 为何使用Laya.loader.load都会报错 附件 : --> fishHunter.zip 2019-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 引...
来源: Laya_社区 发布时间: 20190521
...A域名图片获取失败,导致图片不显示,什么原因 Laya.loader.load 方式预加载 附件 : --> 2017-09-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 方便给个例...
来源: Laya_社区 发布时间: 20170912
... constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-...
来源: Laya3.0_文档 发布时间: 20241014
... constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-...
来源: Laya3.0_文档 发布时间: 20251105
...s/fs.js:1:37) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1101:14) npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32) npm ERR! at Function.Module._load (node:...
来源: Laya_社区 发布时间: 20220406
... //加载引擎需要的资源 //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); Laya.loader.load ( [ { url: "res/a...
来源: Laya_社区 发布时间: 20180513
...被折叠 要回复问题请先登录 发起人 C_jx 相关问题 请问下loader如何强制加载一个文件,避免浏览器的缓存 求教: soundManager如何停止正在播放的背景音乐 Animation 的createFrames 使用已经加载的图集缓存动画失败 请教下微信小游戏的...
来源: Laya_社区 发布时间: 20171121
...个回复 Monica - 知识达人 赞同来自: 预加载的话直接用Laya.loader.load加载即可 2017-09-20 0 6 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 szsailing 相关问题 微信小游戏如何使用ttf字体? 加载到舞台...
来源: Laya_社区 发布时间: 20170920