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

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

921. 预加载结束之后还是报lose skin [ 68%]

预加载结束之后还是报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

922. 微信小程序项目中xml无法加载和解析 [ 68%]

...析xml,将项目放入微信小游戏后会报错 代码如下: Laya.loader.load([{url: "lang.xml", type: Loader.XML}]); 错误如下: gameThirdScriptError undefined;at api readFile success callback function undefined 经调试,原因就是加载了xml,去掉该行就不会报错。 同时...

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

923. 加载不了模型 [ 68%]

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

924. 1.7.15 IDE资源发布有bug [ 68%]

...是图集后缀的问题,{ url: "res/atlas/baseui.json", type: Loader.ATLAS },改成{ url: "res/atlas/baseui.atlas", type: Loader.ATLAS },就好了

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

925. 释放资源Cannot read property '_getSource' of undefined重新加载会容易报错 [ 68%]

...0 0 分享 微博 QZONE 微信 136*****504 赞同来自: 我发现先clear loader可以解决这个问题 2021-01-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Chiuan 相关问题 加载到舞台的3D模型不显示贴图 请问下...

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

926. [LayaAir3]从3.0.9开始纹理对象再次使用,会出现闪烁 [ 68%]

...画则没问题  // 当播放完成动画的时候,判断了一手Laya.loader.getRes是否还存在,不走load加载,直接从loader.getRes获取大纹理对象,则播放会闪烁  // 如果每次都走load接口加载则正常   我是拿3.0.11测试的,实际上从309版本修复了纹...

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

927. [LayaAir3]OPPO小游戏下图片地址无法加载 [ 68%]

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

928. 微信小游戏调试时发现,某些机器上会出现切换场景后屏幕不刷新 [ 68%]

...链接 提交 1 个回复 IM-许 赞同来自: 你是不是 有用  Laya.loader.load 加载 2019-02-27 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 177*****610 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用了...

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

929. 微信小游戏资源加载问题 [ 68%]

...还是会到网络上远程读取。看了看引擎代码,应该是MiniLoader.load中,判定了如果加载的资源是png,jpg之类的图片,会调用Loader.load去加载,在Loader.load中,判定如果是image类型的资源,那么会执行URL.formatURL(url),把本地图片资源加上...

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

930. 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? [ 68%]

...红框内的修改  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