大约有 118 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0045 秒)
...错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMa...
来源: Laya_社区 发布时间: 20180810
..."./js/dom_parser"); require("code.js");在加载这个文件的时候 Laya.loader.load([{ url: "button_font.fnt" }], Handler.create(null, onLoaded)); 图片里的 type="font",最终执行的 tempData=data.data; tempData 直接就是button_font.fnt里面内容的字符串类型MiniLoader.onReadNati...
来源: Laya_社区 发布时间: 20180704
...; //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这...
来源: Laya_社区 发布时间: 20180129
...与内容相关的链接 提交 8 个回复 OneWay 赞同来自: 替换MiniLoader试试 MiniLoader.zip 2018-04-27 0 3 分享 微博 QZONE 微信 linchenrr 赞同来自: 补充一下 微信小游戏平台 2018-04-26 0 1 分享 微博 QZONE 微信 linchenrr 赞同来自: 找到原因了 项目发...
来源: Laya_社区 发布时间: 20180426
...进行进度值传参 dd.loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Brows...
来源: Laya_社区 发布时间: 20180416
...中: //加载图集 asset.push( { url: NVHAIDAOMAO_JSON_URL, type: Laya.Loader.ATLAS }, { url: WAR_JSON_URL, type: Laya.Loader.ATLAS } ); Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); // 使用图集 var arr = []; for(v...
来源: Laya_社区 发布时间: 20170326
...; } private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = n...
来源: Laya_社区 发布时间: 20180525
...有资源 var resource = [ { url: "res/atlas/game/game.atlas", type: Laya.Loader.ATLAS }, { url: "res/models/scene/scene.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "res/models/xiaoji/xiaoji.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "res/models/item/item.lh", clas: Laya.Sprite3D, priority:...
来源: Laya_社区 发布时间: 20180426
load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20170719
...还有 我只加载动画使用的资源好想不可以?还有使用Laya.Loader的方式能不能加载ani文件? laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内存不断增加! 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方...
来源: Laya_社区 发布时间: 20190123