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

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

201. TS分离模式设置未打包图片输出目录导出资源无法加载未打包资源 [ 77%]

...源 如图设置 修改加载代码 Laya.loader.load([     { url: "res/atlas/comp.atlas", type: Loader.ATLAS },     { url: "unpack/comp/image.png", type: Loader.IMAGE },     { url: "test/TestPage.json", type: Loader.JSON }, ], Handler.create(this, this.onLoaded)); 运行报错: [warn]Ret...

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

202. 【vivo】2d图集加载不上 [ 77%]

...上 Laya.loader.load(url,Handler.create(this,onLoadComplete),null,Loader.ATLAS); 用Loader.ATLAS图集类型加载失败 附件 : --> myLaya.zip 2019-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 陆仁毅 ...

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

203. layabox加载fairygui发布的二进制文件报错 [ 77%]

...看下   加载代码 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.json", type:Laya.Loader.BUFFER}              ], Laya.Handler.create(this,...

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

204. 如何解析json文件并获取某对象值? [ 77%]

...文件并获取某对象值? private jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经通过上面代...

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

205. laya.net.Loader [ 77%]

...(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getAtlas(url:String):Array[static] 获取指定资源地址的图集地址列表。 Loader  getRes(url:String):*[static] 获取指定资源地址的资源。 Loader  getTypeFromUrl(url:String):String[static] 获取指定资...

来源: Laya2.0_api 发布时间: 20190513

206. ani时间轴动画问题 [ 77%]

ani时间轴动画问题 Laya.loader.load("res/atlas/move.json", Laya.Handler.create(this, onLoaded)); function onLoaded() {     //创建一个Animation实例     var tl = new Laya.Animation();     //加载动画文件     tl.loadAnimation("TimeLine.ani");     //添加到舞台   ...

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

207. 火狐浏览器上webgl异常 [ 77%]

...享 微博 QZONE 微信 阿龙 赞同来自: [error]Failed to load: res/atlas/comp.atlas myLayaPricticeAll.max.js:16597:5 lose skin comp/button.png  Error: WebGL warning: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow....

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

208. SCALE_FIXED_WIDTH适配屏幕的问题 [ 77%]

...onent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/create_room.atlas", ...

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

209. 报错,这不是个构造函数 "StartPage is not a constructor" [ 76%]

... Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GamePage = new GamePage(); Laya.stage.addChild(GamePag...

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

210. 关于laya打包找不到配置 [ 76%]

...单机制。如下例所示:   MiniAdpter.nativefiles = ["wxlocal","res/atlas/houzi.atlas","res/atlas/houzi.png","common/tishi.png","common/bg.png","ui.json","newLb/bg031.png"]; 只要是MiniAdpter.nativefiles里存在的目录名或文件,引擎会自动将该目录视为本地目录,即便...

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