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

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

51. Panel滚动条滑块位于最下方 [ 70%]

...1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin="comp/vscroll.png"; pa...

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

52. 【分享】图集打包工具 使用方法及注意事项 [ 70%]

...成后我们会看到输出目录的3个文件,分别为.rec , Girl.atlas 和 Girl.png 看到这3个文件说明我们成功的将图集打包,图4 接下来我们需要将打包后的atlas和png文件存放到项目的bin/h5/res路径下, .rec是打包工具用的文件,我们可以不...

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

53. laya.net.Loader [ 69%]

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

54. 是否启用版本管理,启用后,会重命名变化的文件(Laya如何判别变化?) [ 69%]

...没有删除资源的情况下-------------------------- 2.复合文件(atlas,swf等),如果atlas里的内容和之前的atlas内容不符 3.versin.json被删除了,虽然其他文件都在,但是也会全部重新生成新的文件名。   是这样吗?   至于以后生成新的文...

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

55. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 68%]

...我们用到图集 和 普通图片 1、Laya.Loader.IMAGE 2、Laya.Loader.ATLAS   因此我们的LayaSample.js需要修改一下加载代码如下: //加载单个资源 var asset = []; asset.push({ url : [ "res/background.png", "res/m_background.png", "res/floor.png" ], type : Laya.Loader.IMAGE }...

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

56. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 68%]

...packageFileExtension = "json"; Laya.loader.load([     { url: "res/Basics_atlas0.png", type: Laya.Loader.IMAGE },     { url: "res/Basics.json", type: Laya.Loader.BUFFER }     ], Laya.Handler.create(this, this.onLoaded)); }  onLoaded(): void {     console.log('===================ss');     ...

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

57. 更新到1.7.6beta之后,HBox有bug [ 68%]

... lusky 赞同来自: Laya.init(1200, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { ca...

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

58. drawcall优化问题 [ 67%]

...1094 关注: 5 人 jacksing888 • 2018-01-22 23:37 Laya.loader.load( 'res/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; rol...

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

59. 在 tiledmap 插入一个精灵在上面 [ 67%]

... init():void{   Laya.init(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); }   onLoaded(){   console.info("onLoaded");   this.tiledMap = new Laya.TiledMap();   this.tiledMap.createMap("desert.json", new Laya.Rec...

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

60. Image.loadImage 方法加载问题 [ 67%]

... console.log( this._publicSpaceData.icon );    this.bg.loadImage( "res/atlas/gamewindow/" + this._publicSpaceData.icon,0,0,0,0, new Laya.Handler(this, this.imgLoaded) );    this.addChild( this.bg );    this.addChild( this.btnEnter );   }   private imgLoaded ( e:Laya.Event ) : void   ...

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