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

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

831. LayaDcc使用问题 [ 71%]

...就跟你在浏览器里用一个新图片一样。你在浏览器如果是loader一张新的图片,那么图片加载完,你是可以知道的,loader的完成回调就是图片加载完毕,至于加载进度h5游戏都是按文件个数来返回的,没有返回具体的文件大小加载...

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

832. 如何给loadprogress传参数? [ 70%]

如何给loadprogress传参数? Laya.loader.load(myurl,Laya.Handler.create(this,this.loadComplete),Laya.Handler.create(this,this.loadprogress,["param"])); /** * 加载进度 */ private loadprogress(data:Array<any>):void{ console.log("加载进度: " + data);//加载进度: param }Laya.Handl...

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

833. Texture自动恢复还是存在另外的问题 [ 70%]

...itmap || this._bitmap.destroyed)&& url){             Laya.loader.load(url,Handler.create(this,function(bitmap){                 _$this._bitmap=bitmap;             }),null,"htmlimage",1,false,null,true);         }     }   Laya.loader.load的cache参数...

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

834. 能否恢复Animation.getGraphicBounds在1.6时的用法 [ 70%]

...ookAt的用法 Texture图片能否进行翻转? Laya.URL.basePath与Laya.loader.load用法 请问关于遮罩的用法,在哪块可以找到? 编辑器下HtmlDIVElement属性能否支持style选项设置 请问下layaflash能否支持热更新? Laya.loader.clearTextureRes引起的内存泄...

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

835. protobuffer加载失败 [ 70%]

...资源地址使用中括号 )加载 .proto 文件失败:     Laya.loader.load(["res/protobuf/user.proto"], Handler.create(this, onAssetsLoaded)); 错误提示如下: [warn]Retry to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto [error]Failed to load: E:/LayaBox/ProtobufLoadTe...

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

836. Sprite-遮罩-放大镜 [ 70%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load("../../res/bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png")...

来源: Laya_示例 发布时间: 20260819

837. 关于stage的size问题 [ 70%]

...scaleMode = Laya.Stage.SCALE_NOSCALE; // Laya.stage.size(6000, 6000); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(spr...

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

838. 动态加载的图片不响应按钮点击事件 [ 70%]

...URLRequest = new URLRequest(); imgURL.url="res/data/image/522.png"; var imgLoader:Loader = new Loader(); imgLoader.load(imgURL); imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, finished); function finished(evt:Event):void { var img:Bitmap = new Bitmap(evt.target.content.bitmapData); sta...

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

839. exception info:[SyntaxError: JSON Parse error: Expected '}'] at line 22 [ 70%]

...: Error Could not attach to main target 微信小程序里加载json文件 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug spine动画转换失败,加载错误:导出二进制数据出错:writeUint8 error - Out of range261, 有谁知道什...

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

840. 严重问题资源销毁不了 [ 70%]

...了 资源销毁不了 我先加载一个图集,然后执行销毁 Laya.loader.clearRes("res/atlas/mainTown.json"); 但内存并没回收,查看代码也执行了销毁过程,但内存就没没减下来。   还有个问题: 如果只是加载资源,不添加到显示对象上,内存是...

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