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

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

711. android下layabox调用Laya.Texture2D.load报错 [ 63%]

...ev-loca ... 483:28) 02-06 14:59:43.858  6545  6658 I LayaBox :     at LoaderManager.__proto._endLoad (http://10.0.1.72/game/dev-loca ... 070:11) 02-06 14:59:43.858  6545  6658 I LayaBox :     at Loader.onLoaded (http://10.0.1.72/game/dev-local/res/libs/laya  layabox 版本: 02-06 14:56:40...

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

712. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 63%]

...;     } }); (function loadUI() {     var curStateIndex = 0;     Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () {         var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "正常模式"));   ...

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

713. 引擎2.0.2版本,调用Resource.destroyUnusedResources问题 [ 63%]

...,bitmap被销毁以后cache。将recoverBitmap修改cache住,然后将Loader中的textureMap加进来就可以了。 还要吐槽一句,为什么不在公告上说出来?我翻了所有的更新记录没有看到相关的,但是代码里却改了,真的服气。

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

714. 如何给loadprogress传参数? [ 63%]

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

715. 关于stage的size问题 [ 63%]

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

716. [LayaAir3]页面之间,通过open,onOpend 方法传参数,接收不到 [ 63%]

...自: LayaAir 3.3.0-beta.4 可以传递参数 代码如下        Laya.loader.load(config.url, Laya.Loader.HIERARCHY).then((res: any) => {                 let view: Laya.Scene = res.create();                 view.open(false, ...param);             })这边能正常输出...

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

717. 2.0.2使用worker加载图片的问题 [ 63%]

2.0.2使用worker加载图片的问题 Laya.loader.load加载图片时,如果使用worker加载,会调用到loadImage方法,然后执行这句话`this.worker.postMessage(url);`,然后 在worker.js中执行了这句话`onmessage=function(t){var e=t.data;switch(e.type){case"load":loadImage2(e...

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

718. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 63%]

...nction LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResCompl...

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

719. 微信资源加载问题 [ 63%]

... 我加载几十张图片,图片在外网服务器上面,然后我用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

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

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

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