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

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

811. 如何给loadprogress传参数? [ 71%]

如何给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

812. 生成的粒子特效怎么设置colorComponentInter无效? [ 71%]

...uper(this); letter = letter; this.loadImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAssetsLoaded(settings) { settings.colorComponentInter = true; sp = new Particle2D(settings); sp.emitter.start(); sp.pl...

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

813. 移动端Laya.VideoTexture播放视频纹理会出现卡顿情况~如何解决? [ 71%]

...于资源加载的文档 https://layaair.layabox.com/3.x/doc/basics/common/Loader/readme.html 这里预加载后经过测试在移动端的Chrome浏览器播放视频纹理基本稳定。 2023-08-07 0 1 分享 微博 QZONE 微信 追命 赞同来自: 您给的地址进行预加载,没有视频案...

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

814. UI-Dialog [ 71%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Handler.create(this, this.onSkinLoadComplete)); } onSkinLoadComplete() { const Dialog = Laya.Dialog, Image = Laya.Image, Button = Laya.Button; let dialog = new Dialog(); let bg = new Image(assets[0]); dial...

来源: Laya2.0_示例 发布时间: 20260303

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

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

816. 自适应问题 [ 71%]

...bgColor = "#ff0000";       Laya.stage.scaleMode = "fixedwidth";   Laya.loader.load("http://localhost/layabox/layabox/layabox/res/bg.png'", Handler.create(this, function () {         var t = Laya.loader.getRes(skin);         var _sprite = new Sprite();         _sprite.graphics.drawTex...

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

817. 微信小游戏加载资源问题 [ 71%]

...) { if (window.navigator.userAgent.indexOf('MiniGame') < 0) { Laya.Laya.loader.load(fileUrl, callBack); } else { if (fileType == Laya.Loader.IMAGE || fileType == Laya.Loader.SOUND) MiniFileMgr.downOtherFiles(fileUrl, callBack, fileUrl, true, false); else MiniFileMgr.downFiles(fileUrl, encoding, c...

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

818. protobuffer加载失败 [ 71%]

...资源地址使用中括号 )加载 .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

819. 微信资源加载问题 [ 71%]

... 我加载几十张图片,图片在外网服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) ...

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

820. LayaDcc使用问题 [ 71%]

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

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