大约有 325 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
...加载分包和资源 ``` my.loadSubPackage({ name: 'packageA', success: (res) => { this.setData({ subpackageReady:true }) console.log("download success") }, fail: function (res) { console.log(res) console.log("download fail") } }) ``` ## 四、分包构建 完成上述分包配置后,开发者需...
来源: Laya2.0_文档 发布时间: 20210715
...mple() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():void { //Animation.createFrames(["res/atlas/monsterbeattack/0.png","res/atlas/monsterbeattac...
来源: Laya_社区 发布时间: 20170220
...扩展名导致加载失败 原始文件路径http://192.168.1.70/heidao/resource2/actgame/res/spine/lh_10001/lh_10001.skel 在微信小游戏中引擎不知为何自己新增扩名http://192.168.1.70/heidao/res ... l.bin,造成了加载失败 附件 : --> 2024-07-12 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20240712
...age({ name: 'stage1', // name 可以填 name 或者 root success: function(res) { // 分包加载成功后通过 success 回调 }, fail: function(res) { // 分包加载失败通过 fail 回调 } }) ``` 加载成功的同时,wx.loadSubpackage 会返回一个 [LoadSubpackageTask](https://developers....
来源: Laya2.0_文档 发布时间: 20210715
...f(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameConfig from "...
来源: Laya_社区 发布时间: 20200314
...目 2、切换到ui界面,创建一个ui 3、按f12导出资源 4、bin/res/atlas 目录有生成,就没有文件 2017-03-16 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: 最好可以...
来源: Laya_社区 发布时间: 20170316
...面加载后得到的数据是空的 Laya.loader.load([ { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE }, { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE}, { url:"res/Bag.xml", type:Laya.Loader.BUFFER} ], Laya.Handler.create(this, this.onLoa...
来源: Laya_社区 发布时间: 20190726
...rBgSize*0.2; var directionBg = new Sprite(); directionBg.loadImage("../bin/res/img/btn_direction$bg.png",dirBgLeft,Browser.clientHeight,dirBgSize,dirBgSize); Laya.stage.addChild(directionBg); Sprite.loadImage()中设置的y的值为Browser.ClientHight时不准确,不能移到屏幕低端。 附件...
来源: Laya_社区 发布时间: 20170426
...建会抛出异常: // 动画模版 Laya.Animation.createFrames([{ url: "res/atlas/actor/character/idle.json", type: Laya.Loader.ATLAS }], ActionType.MOVE_STAND); 异常信息如下: TypeError: url.indexOf is not a function at Function.URL.formatURL (file:///E:/EarlyChildhood/EARLY_GAME_001/b...
来源: Laya_社区 发布时间: 20170206
...列表,F12打包图集并进行发布 F12导出后会出在动在bin/h5/res/atlas下自动生成.json和.png图片,该文件即为图集文件 步骤三:预加载图集并获取图集下的小图资源package { import laya.display.Animation; import laya.display.Sprite; import laya.net.Loader; ...
来源: Laya_社区 发布时间: 20160707