大约有 212 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
Laya_社区(134) Laya2.0_文档(34) Laya3.0_api(21) Laya3.0_文档(16) Laya2.0_示例(3) laya_api(2) Laya2.0_api(2)
...图集文件不存在本地包,而是存在cdn上,这时先调用Laya.loader.load方法将文件加载完,然后通过: __JS__('wx').postMessage({url:url,data:tempData,isLoad:"filedata"}); 说明: url是图集文件的路径; tempData:是图集文件的json数据; isLoad:为filedata...
来源: Laya_社区 发布时间: 20180525
... // 创建一个用于存放位图数组的临时精灵 let texture = Laya.loader.getRes(options.srcPath+options.srcName+".png"); // 读取图集生成大切片 let textureIns = Laya.Texture.create(texture, aniProps.res[aniProps.mc[options.srcName].frames[i].res].x, aniProps.res[aniProps.mc[options....
来源: Laya_社区 发布时间: 20190215
...关于遮罩的用法,在哪块可以找到? Laya.URL.basePath与Laya.loader.load用法 问题状态 最新活动: 2019-09-26 13:14 浏览: 919 关注: 1 人
来源: Laya_社区 发布时间: 20190926
...id { const { x, y, width, height } = this.box Laya.loader.load('comp/image.png').then(v=>{ const texture = this.box.drawToTexture(width, height, x, y) as Laya.Texture this.snapshot.texture = texture }); } 2024-06-05 0 0...
来源: Laya_社区 发布时间: 20240425
...的URL,因为这个URL没有后缀,所以加载时要写上类型 Laya.loader.load([{url:url,type:"image"}], Handler.create(this,function(){ //接下来 }));5.接下来回调,卸载之前的资源 Laya.loader.clearRes(oldUrl);6.加载Texture2D 这样就原图片地址是个Texture2D,生...
来源: Laya_社区 发布时间: 20181221
... llc 赞同来自: 碰到相同的问题,解决了,供参考: Laya.loader.load(chapterBG, Laya.Handler.create(this, this.onBGLoaded, [chapterBG])/* , Laya.Handler.create(this, this.onBGLoadProgress) */); 第三个参数打开在某些条件下会出t._addReference is not a function 可能是...
来源: Laya_社区 发布时间: 20180423
...Monica • 2017-10-13 10:44 @hypo_chen:那就加载多个json文件...Laya.loader.load第一个参数是数组类型的
来源: Laya_社区 发布时间: 20171012
...his.h1 = Laya.Handler.create(this, this.loadPicComplete, null, true); Laya.loader.load("res/img/1.png", this.h1); } private loadPicComplete(): void { Laya.timer.once(2000, this, this.actT); } private actT(): void { this.h2 = Laya.Handler.create(this, this.loadPicComplete, null, true); console.log(th...
来源: Laya_社区 发布时间: 20171221
...何反应这么慢,附上demo求解答 Laya.Handler.create 回调 Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2019-07-02 11:16 浏览: 1219 关注: 1 人 zpo • 2019-09-05 16:23 请问是怎么解决的呢?我们写了个简单的demo测异步回调是测通的...
来源: Laya_社区 发布时间: 20190524
...此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...
来源: Laya3.0_文档 发布时间: 20251010