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

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

131. 内存释放问题 [ 55%]

...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

132. 关于资源加载的问题 [ 55%]

....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

133. 游戏资源加载问题! [ 54%]

...议放到一个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

134. 微信小游戏图片加载不出来 [ 54%]

...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

135. IOs使用手动删除本地资源再次进去加载问题 [ 54%]

...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

136. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 53%]

...{ //在回调里,正常使用原来的图集 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

137. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 53%]

...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

138. Scene.load加载的时候无法正确的识别ResourceVersion [ 53%]

...目录,诸如这样的路径: Assets/Game/Scene/001/001_01/Lightmap-7_comp_light.png是不是都必须放到bin的跟目录之下? 2018-01-30 0 3 分享 微博 QZONE 微信 watsonsong 赞同来自: ResourceVersion.addVersionPrefix这个函数本来有两个参数,第二个参数basePath直...

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

139. uglify压缩后的错误堆栈解析 [ 53%]

...解析 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

140. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...: 语法结构 示例代码 语句说明 [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