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

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

191. 是不BMFONT不支持多类型资源加载方式? [ 82%]

...式? var assets = []; assets.push( { url: "res/fontWord.fnt", type: Laya.Loader.FONT }); Laya.loader.load(assets, Laya.Handler.create(this, onAssetsLoaded)); function onAssetsLoaded(){ var bitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/fontWord.fnt"); //必出错 }     只要使用...

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

192. ani时间轴动画问题 [ 82%]

ani时间轴动画问题 Laya.loader.load("res/atlas/move.json", Laya.Handler.create(this, onLoaded)); function onLoaded() {     //创建一个Animation实例     var tl = new Laya.Animation();     //加载动画文件     tl.loadAnimation("TimeLine.ani");     //添加到舞台   ...

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

193. 2.5.0无法打包oppo的rpk [ 82%]

...ONE 微信 许仙烹蛇羹 赞同来自: data stderr: internal/modules/cjs/loader.js:583     throw err;     ^ Error: Cannot find module 'shelljs'     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)     at Function.Module._load (internal/modules/cjs/loader.js:507:2...

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

194. 同时加载多个.js文件 [ 82%]

同时加载多个.js文件 Laya.loader.load("js/daTing.js", Handler.create(this, onAssetLoadedDT), null, Loader.TEXT); 同时加载多个么? 2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - ...

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

195. vivo真机加载问题 [ 82%]

...试过,发布到vivo真机调试,直接运行是没有问题的 Laya.loader.load([1.png,2.png,3.png])  返回undefined Laya.loader.load("1.png") 加载返回false Laya.Texture2D.load("1.jpg")  加载返回undefined 求帮助   附件 : --> 2020-03-25 添加评论 已悬赏20元 --> 分享 微...

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

196. 问一下,使用Laya.loader.clearUnLoaded();以后,再重新开始加载就加载不了了?这个该怎么解决? [ 82%]

问一下,使用Laya.loader.clearUnLoaded();以后,再重新开始加载就加载不了了?这个该怎么解决? 2017-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: 你是...

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

197. laya.net.LoaderManager [ 82%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderManagerProperties | Methods | Events Packagelaya.netClasspublic class LoaderManagerInheritanceLoaderManager EventDispatcher Object LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实...

来源: Laya2.0_api 发布时间: 20190513

198. 动画-图集动画 [ 82%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(aniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.Loader.ATLAS); } createAnimation() { const Animation = Laya.Animation; let ani = new Animation(); Laya.stage.addChild(ani); ani.loadAtlas(an...

来源: Laya2.0_示例 发布时间: 20251130

199. linux系统运行layaair-cmd报错 [ 82%]

...ayaair-cmd-compile.js:14:1)     at Module._compile (internal/modules/cjs/loader.js:678:30)     at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)     at Module.load (internal/modules/cjs/loader.js:589:32)     at tryModuleLoad (internal/modules/cjs/loader.js:528:12)   ...

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

200. LoaderManager里的create和load使用上有什么区别?分别用于什么样的场合? [ 82%]

LayaAir引擎 LoaderManager里的create和load使用上有什么区别?分别用于什么样的场合? 测了一下,调用create的方式,Laya.loader.getRes(xx.lh)获得的是Sprite3D对象,load方式,Laya.loader.getRes(xx.lh)获得的是内容json。 2017-05-11 添加评论 免费帖 -...

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