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

大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

291. Loader 加载一张图片后,可以把这张图片改名字吗 [ 76%]

Loader 加载一张图片后,可以把这张图片改名字吗 您好,各位大神好。  请问:Loader 加载一张图片后,可以把这张图片改名字吗。 比如:图片图径是res/a.png, 用Loader加载:Laya.loader.load([{url:"res/a.png", type:Laya.Loader.IMAGE}]); 现在...

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

292. 仅在Android微信小游戏下图片错乱 [ 76%]

...小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console....

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

293. canvas下资源清理的问题 [ 76%]

...aya.display.Stage;     import laya.events.Event;     import laya.net.Loader;     import laya.ui.Button;     import laya.utils.Handler;     import laya.utils.Stat;          import ui.TaskUI;          import view.TestView;          public class LayaUISample {      ...

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

294. loader 资源放cdn的问题? [ 76%]

loader 资源放cdn的问题? 如果我将打包的图集资源放到其他站点cdn上,loader要如何加载? 2017-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 这个没啥区...

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

295. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 76%]

使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? package { import flash.display.Bitmap; import flash.display.Loader; import flash.display.Sprite; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.UR...

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

296. 关于layaair中类的大小写规则有没有基本的说明文档 [ 76%]

...yaair中类的大小写规则有没有基本的说明文档 比如: Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(null, onLoaded), null, Laya.Loader.ATLAS); Laya.loader.load(resArray, Laya.Handler.create(null,onLoaded)); loader与handler   2017-03-16 添加评论 免费帖 --> 分...

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

297. 微信小游戏加载 BitmapFont 问题 [ 76%]

..."./js/dom_parser"); require("code.js");在加载这个文件的时候 Laya.loader.load([{ url: "button_font.fnt" }], Handler.create(null, onLoaded)); 图片里的 type="font",最终执行的 tempData=data.data; tempData 直接就是button_font.fnt里面内容的字符串类型MiniLoader.onReadNati...

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

298. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 76%]

...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); } private function graphicsImg():void { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台...

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

299. 请问怎么监听在IDE中创建的UI中资源的加载进度呢 [ 76%]

...的加载进度呢 我在IDE中创建了整个游戏界面,然后通过loader去加载界面的配置文件:Laya.loader.load(['res/atlas/game.json'],Laya.Handler.create(this,Slot.onSourcesLoaded), Laya.Handler.create(this,Slot.onSourcesLoading,null,false),Laya.Loader.ATLAS);这样写似乎监听...

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

300. 照着官方文档写的 Dialog 报错? [ 76%]

...this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.initLoadData(); }; LoadResource.prototype...

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