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

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

181. Image 动态替换图片后变小了 [ 68%]

...小   var assets:Array = ;      assets.push({url:"map/157.jpg", type:Loader.IMAGE});      Laya.loader.load(assets, Handler.create(this, loadMapBGComplete));      function loadMapBGComplete():void{       var tx:Texture = Laya.loader.getRes("map/157.jpg");       this._test....

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

182. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 68%]

....js 在之前的基础上增加加载图片的代码://加载图片 Laya.loader.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoad...

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

183. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 68%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); } private setup(): void { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } private normalizeApe(): void { var originalApe: Sprite = this.createApe(); th...

来源: Laya2.0_文档 发布时间: 20210715

184. 微信小游戏 wxlocal怎么用 [ 68%]

...8-03-27 10:33 浏览: 1439 关注: 2 人 seacole • 2018-03-27 11:22 Laya.loader.load([{ url: 'wxlocal/load.json', type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.loadComplete)); 我就是这么调用的,但是load.json这个文件还是去远程拉了。该怎么解? Laya_Aaron • ...

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

185. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 68%]

... content && (this._data=content);         if (this._cache)Loader.cacheRes(this._url,this._data);         this._customParse=false;         this.event("progress",1);         this.event("complete",(this.data instanceof Array)? [this.data] :this.data);     } ...

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

186. 微信小游戏资源总是加载旧的资源 [ 68%]

...   引擎版本1.7.18beta   我是用这样的方式加载的图集 Laya.loader.load([{url: "res/atlas/xxx1.json", type: Loader.ATLAS},         {url: "res/atlas/xxx2.json", type: Loader.ATLAS},          {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(...   并且在...

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

187. 加载显示多个swf并显示 [ 67%]

...分段动画,用什么方法将判断将这些swf都加载完,然后从Loader里取出这些素材组合成分段动画,用程序控制播放动画,这样的处理方式有例子吗?如果没有可以给个思路吗? 2017-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

188. 小游戏项目 加载有中文的json文件 报错 [ 67%]

...引擎 Laya.init(600, 400); var url:String = "res/json/Sheet1.json"; Laya.loader.load(url, Handler.create(null, onJsonLoaded,[url]), null, Loader.JSON); } private static function onJsonLoaded(url:String,data:Object):void { var arr:Array = data.Sheet1; Laya.loader.clearRes(url); } 微信开发者工...

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

189. HTMLIframeElement加载html网页的问题 [ 67%]

... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import HTMLIframeElement = Laya.HTMLIframeElement; class TestUI extends ui.htmlUI { constructor() { super(); var iHtml: HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml....

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

190. 图集版本加载问题 [ 67%]

...omp.atlas?version=1.0.0",                             type: Loader.ATLAS                       };Laya.loader.load(obj); 引擎自动加载的png地址是res/atlas/comp.png, 而不是res/atlas/comp.png?version=1.0.0   这个能不能解决(一个项目加载另一个项...

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