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

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

131. 游戏资源加载问题! [ 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

132. 微信小游戏图片加载不出来 [ 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

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

134. 基础文本 · LayaAir3.0文档 · LAYABOX [ 54%]

...: 语法结构 示例代码 语句说明 [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_文档 发布时间: 20230830

135. 隐藏默认的虚拟键、屏蔽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

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

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

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

139. 在微信小游戏中使用BitmapFont会导致报错. [ 53%]

...BitmapFont('Name', timerFont);         Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded));     })); }  function onLoaded(): void {     //实例UI界面     var testUI: TestUI = new TestUI();     Laya.stage.addChild(testUI); } 附件 : --> src.rar 2018-0...

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

140. 关于canvas下资源释放的问题 [ 52%]

...图集地址或者texture地址,比如 Loader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg");              */         public static function clearTextureRes(url:String):void { 2018-04-25 0 0 分享 微博 QZONE 微信 w1114367261 赞同来自: 你是...

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