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

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

151. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 60%]

...图集文件不存在本地包,而是存在cdn上,这时先调用Laya.loader.load方法将文件加载完,然后通过: __JS__('wx').postMessage({url:url,data:tempData,isLoad:"filedata"}); 说明: url是图集文件路径; tempData:是图集文件json数据; isLoad:为filedata...

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

152. 如何获取animationnode节点? [ 59%]

... // 创建一个用于存放位图数组临时精灵 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

153. laya3d变换,m.transform.worldMatrix.setForward中,setForward用法? [ 59%]

...关于遮罩用法,在哪块可以找到? Laya.URL.basePath与Laya.loader.load用法 问题状态 最新活动: 2019-09-26 13:14 浏览: 919 关注: 1 人

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

154. [LayaAir3]sprite.drawToTexture( ) 无法绘制容器内容 [ 59%]

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

155. Texture如何转换成Texture2D有人搞过吗 [ 58%]

...URL,因为这个URL没有后缀,所以加载时要写上类型 Laya.loader.load([{url:url,type:"image"}], Handler.create(this,function(){ //接下来 }));5.接下来回调,卸载之前资源 Laya.loader.clearRes(oldUrl);6.加载Texture2D   这样就原图片地址是个Texture2D,生...

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

156. t._addReference is not a function [ 58%]

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

157. 一个图集动画由多张图集组成这种图集动画怎么加载播放? [ 58%]

...Monica • 2017-10-13 10:44 @hypo_chen:那就加载多个json文件...Laya.loader.load第一个参数是数组类型

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

158. Handler.create回收问题 [ 58%]

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

159. 二次开发 异步回调没反应 [ 58%]

...何反应这么慢,附上demo求解答 Laya.Handler.create 回调 Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2019-07-02 11:16 浏览: 1219 关注: 1 人 zpo • 2019-09-05 16:23 请问是怎么解决呢?我们写了个简单demo测异步回调是测通...

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

160. vivo小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...此方法只执行一次 */ 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