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

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

281. 自定义loadingView [ 70%]

...ing(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Browser.window.loadingView

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

282. 预加载结束之后还是报lose skin [ 70%]

...之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetL...

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

283. 微信小游戏加载 BitmapFont 问题 [ 70%]

...pData; if (type==/*laya.net.Loader.JSON*/"json" || type==/*laya.net.Loader.ATLAS*/"atlas"){ tempData=MiniAdpter.getJson(data.data); }else if (type==/*laya.net.Loader.XML*/"xml"){ tempData=Utils.parseXMLFromString(data.data); } // else if (type==/*laya.net.Loader.XML*/"font"){ // tempData=Utils.parse...

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

284. 使用了Laya.Browser.height,但是底部还是会空出一截,是什么原因? [ 70%]

...js代码中,let 是什么意思 IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 请问list如何判断已经拉到底部了 资源管理器中的图片个别显示不打包,是不是不能打包到图集中了?这个是什么原因造成...

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

285. Dialog和View用destroy和Laya.stage.removeChild有什么区别? [ 70%]

...视图VIew编辑导出之后,src/ui/layaMaxUI.ts 并没有变化…… atlas目录下.json文件与.atlas的区别 view和Dialog区别 MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 关于打包图集时的图片默认属性与repeat的区别 问题状态 最新活...

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

286. 按照打地鼠教程来无法正常加载资源 [ 70%]

...      var resArr:Array = [                 {res:"res/atlas/ui.atlas"},                 {res:"res/ui/back.png",type:Loader.IMAGE}             ];             Laya.loader.load(resArr,Handler.create(this,this.onLoaded));         }  ...

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

287. Animation创建动画模板问题 [ 69%]

...抛出异常: // 动画模版 Laya.Animation.createFrames([{ url: "res/atlas/actor/character/idle.json", type: Laya.Loader.ATLAS }], ActionType.MOVE_STAND);   异常信息如下: TypeError: url.indexOf is not a function at Function.URL.formatURL (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/lib...

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

288. laya获取图片像素后重新设置回去带有透明像素的地方显示有问题 [ 69%]

...ive = new Array();         alive.push({url:"res/FGUIMain/Common_atlas0.png", type:Laya.Loader.IMAGE});          Laya.loader.load(alive, Laya.Handler.create(this, this.LoadFinish));      }      private LoadFinish(success:boolean):void     {         if(suc...

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

289. 关于资源版本号的问题咨询 [ 69%]

...in文件夹下的导出资源打版本为0.1,所有被IDE打包进图集.atlas中的资源则不会出现在manifest.json中。此时在游戏中加载完atlas文件后会执行Loader.as的onLoaded中的如下代码 }else{ for (name in frames) { obj = frames[name];//取对应的图 tPic = pics[obj...

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

290. 自己创建的box作为tab,为啥没有点击事件啊? [ 69%]

...ader = laya.net.Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyPage2UI);     var UI = new MyBootClass();     Laya.stage.ad...

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