大约有 2,668 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0104 秒)
Laya_社区(2346) Laya2.0_文档(106) Laya3.0_文档(62) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
预加载结束之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } ...
来源: Laya_社区 发布时间: 20180314
...析xml,将项目放入微信小游戏后会报错 代码如下: Laya.loader.load([{url: "lang.xml", type: Loader.XML}]); 错误如下: gameThirdScriptError undefined;at api readFile success callback function undefined 经调试,原因就是加载了xml,去掉该行就不会报错。 同时...
来源: Laya_社区 发布时间: 20180103
...ao Ss.png"); box.meshRender.material = material; Laya.loader.create("cj\cj-default001.lm",Laya.Handler.create(this,this.onCreateComplete)); function onCreateComplete() { var mesh = Laya.loader.getRes("cj\cj-default001.lm"); var meshSprite3D = new Laya.MeshSprite...
来源: Laya_社区 发布时间: 20180427
...是图集后缀的问题,{ url: "res/atlas/baseui.json", type: Loader.ATLAS },改成{ url: "res/atlas/baseui.atlas", type: Loader.ATLAS },就好了
来源: Laya_社区 发布时间: 20180206
...0 0 分享 微博 QZONE 微信 136*****504 赞同来自: 我发现先clear loader可以解决这个问题 2021-01-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Chiuan 相关问题 加载到舞台的3D模型不显示贴图 请问下...
来源: Laya_社区 发布时间: 20200625
...画则没问题 // 当播放完成动画的时候,判断了一手Laya.loader.getRes是否还存在,不走load加载,直接从loader.getRes获取大纹理对象,则播放会闪烁 // 如果每次都走load接口加载则正常 我是拿3.0.11测试的,实际上从309版本修复了纹...
来源: Laya_社区 发布时间: 20240116
...j.com/api/player/auth/img?key=testpng oppo小游戏下 无法显示 Laya.loader .load( "https://sh.mudgj.com/api/playe ... ot%3B, Laya.Loader.IMAGE ) .then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; sp.pos(0, 200); this.addChild(sp); });无法正常显示 检查发...
来源: Laya_社区 发布时间: 20250818
...链接 提交 1 个回复 IM-许 赞同来自: 你是不是 有用 Laya.loader.load 加载 2019-02-27 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 177*****610 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用了...
来源: Laya_社区 发布时间: 20190227
...还是会到网络上远程读取。看了看引擎代码,应该是MiniLoader.load中,判定了如果加载的资源是png,jpg之类的图片,会调用Loader.load去加载,在Loader.load中,判定如果是image类型的资源,那么会执行URL.formatURL(url),把本地图片资源加上...
来源: Laya_社区 发布时间: 20180125
...红框内的修改 if (Browser.onMiniGame){ console.log(1); tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ console.log(2); tSound=new soundClass(); tSound.load(url); if (Browser.onMiniGame){ Loader.cacheRes(url,tSound); } }; 2个if判断...
来源: Laya_社区 发布时间: 20190108