大约有 717 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0043 秒)
Laya_社区(623) Laya2.0_文档(49) Laya3.0_文档(25) laya_api(4) Laya_示例(4) Laya3.0_api(4) Laya2.0_示例(4) Laya2.0_api(4)
...看下 加载代码 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
...文件并获取某对象值? 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
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
...享 微博 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
...(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
...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
... 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
...th; //滚动类型:水平与垂直都滚动 this.panel.vScrollBarSkin = "atlas/comp/vscroll.png"; this.panel.hScrollBarSkin = "atlas/comp/hscroll.png"; this.panel.elasticEnabled = true; //橡皮筋效果 } } 二、通过代码创建Panel组件 Panel组件除了可以直接在UI界面中可视化...
来源: Laya3.0_文档 发布时间: 20230923
...单机制。如下例所示: 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
...体结构请参考附件 Laya.loader.load([{url: "res/atlas/flicker/image.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestVi...
来源: Laya_社区 发布时间: 20170608