大约有 372 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0047 秒)
Laya_社区(322) Laya2.0_文档(33) Laya3.0_文档(8) Laya2.0_示例(3) Laya_示例(3) Laya3.0_api(2) Laya2.0_api(1)
... //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(t...
来源: Laya_社区 发布时间: 20171228
...引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffcccc"); //给panel...
来源: Laya2.0_文档 发布时间: 20210715
...面单独建立文件夹打包) Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart)); } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20180105
...建完毕,此方法只执行一次 onAwake(): void { var res: any[] = ["atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png", "resources/tree/clip_selectBox.png", "resources/tree/clip_tree_folder.png", "resources/tree/clip_tree_arrow.png...
来源: Laya3.0_文档 发布时间: 20251010
...怎么分包,文档里只有代码分包 图片资源都是放在bin/res/atlas里面,怎么把他们放在分包里面,然后可以在主包访问,另外我在1.0找不到Laya.MiniAdpter.subNativeFiles ,这个函数,2.0就有,什么原因 2018-11-15 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20181115
...n.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/ function updateItem(cell, index) { cell.setImg(cell.dataSource); } function onLoaded(): void { var rankList = new Laya.List(); //rankList.sc...
来源: Laya_社区 发布时间: 20180507
....loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") ...
来源: Laya_社区 发布时间: 20160918
...没有删除资源的情况下-------------------------- 2.复合文件(atlas,swf等),如果atlas里的内容和之前的atlas内容不符 3.versin.json被删除了,虽然其他文件都在,但是也会全部重新生成新的文件名。 是这样吗? 至于以后生成新的文...
来源: Laya_社区 发布时间: 20180628
...ce(); })(); function loadResource(){ var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangf...
来源: Laya_社区 发布时间: 20180315
...GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya....
来源: Laya_社区 发布时间: 20170327