大约有 170 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...ew Laya.Dictionary(); constructor() { } static gameLoading(name: string, onCompleted: Function): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登录的UI和选角的UI { url: "res/atlas/user.json", ty...
来源: Laya_社区 发布时间: 20170905
....FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 并没有getRes操作。我按这样子写法就不行
来源: Laya_社区 发布时间: 20180327
...议放到一个load里边进行加载: Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS},{url:"res/atlas/Skill/Skill_1001.json",type:Laya.Loader.ATLAS}], Handler.create(this, onAssetLoaded), null, Loader.ATLAS); 2017-12-27 0 0 分享 微博 QZONE 微信 q1402907210 - 你猜...
来源: Laya_社区 发布时间: 20171227
...E }, { url: "ui/BG/load.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }, { url: "res/atlas/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handler.cre...
来源: Laya_社区 发布时间: 20181105
...l, onLoaded)); } function onLoaded() { var res_array = [ {url : "res/atlas/comp.atlas", type : Laya.Loader.ATLAS}, ] Laya.loader.load(res_array, Handler.create(null, onLoaded2)); } function onLoaded2() { Laya.stage.addChild(new TestUI()); }当用这种方式分步加载资源的时候 就会出现...
来源: Laya_社区 发布时间: 20180803
...{ //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/...
来源: Laya2.0_文档 发布时间: 20210714
...lse return false; } function LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) }...
来源: Laya_社区 发布时间: 20170228
...目录,诸如这样的路径: Assets/Game/Scene/001/001_01/Lightmap-7_comp_light.png是不是都必须放到bin的跟目录之下? 2018-01-30 0 3 分享 微博 QZONE 微信 watsonsong 赞同来自: ResourceVersion.addVersionPrefix这个函数本来有两个参数,第二个参数basePath直...
来源: Laya_社区 发布时间: 20180130
...解析 1、js的压缩工具:.laya/publish.js 中 // 压缩js gulp.task("compressJs", ["compressJson"], function () { if (config.compressJs) { return gulp.src(config.compressJsFilter, { base: releaseDir }) .pipe(sourcemaps.init({loadMaps:true})) .pipe(uglify({ mangle: { keep_fnames:true } })) .pip...
来源: Laya_社区 发布时间: 20200720
...: 语法结构 示例代码 语句说明 [img]image_url[/img] [img]atlas/comp/image.png[/img] 显示一张图片 [url=link_href]text[/url] [url='www.layabox.com']蓝亚盒子[/url] 显示一个超级链接 [b]text[/b] [b]这些字是粗体[/b] 设置文本为粗体 [i]text[/i] [i]这些字是斜...
来源: Laya3.0_文档 发布时间: 20251010