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

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

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

...加载 这种图片地址 https://sh.mudgj.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.addChi...

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

1942. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 50%]

...; SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));

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

1943. [LayaAir3]光照贴图在web平台和小游戏平台上表现不一致 [ 50%]

...真机预览中过渡突兀,经排查并没有压缩光照贴图,所有png的类型都已经选择了光照贴图一项。   附件 : --> 2024-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Fred ...

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

1944. "Background is not defined"怎么会没定义呢???求救 [ 50%]

...er(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("res/background.png"); this.addChild(this.bg1); } Laya.class(Background,"Background",_super); window.Background=Background; return Background; })(Laya.Sprite); 2017-04-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

1945. loading界面实现图片预加载后,创建Sprite执行loadImage出错 [ 50%]

...Sprite();       addChild(sp);       sp.loadImage("./assets/ico_back.png");   6、定位到 laya.core.js 1438行发现有这样的描述: if (!tex.loaded){       tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }   7、经过反复测试,不仅Sprite...

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

1946. LayaAir IDE UI编辑器Label怎么使用自己的ttf字体文件? [ 50%]

...一个与位图字体同名的文件夹,将位图软件生成的.fnt和.png放到该文件夹里,直接设置你的font为该字体名即可! 2、如果是网上下载的ttf字体,目前无法直接再IDE下使用,需要通过index.html先进行嵌入,然后注册后在代码中进行fon...

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

1947. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 50%]

...FileExtension = "json"; Laya.loader.load([     { url: "res/Basics_atlas0.png", type: Laya.Loader.IMAGE },     { url: "res/Basics.json", type: Laya.Loader.BUFFER }     ], Laya.Handler.create(this, this.onLoaded)); }  onLoaded(): void {     console.log('===================ss');      consol...

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

1948. 加载不了模型 [ 50%]

...l.diffuseTexture = Laya.Texture2D.load("res/freegeek logo 0418 yuanjiao 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.get...

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

1949. 2.2.0beta2发布vivo小游戏报错:Can not find scene:main/MainScene.scene [ 50%]

...cuments/Tencent%20Files/2895680850/Image/C2C/QNI%7D53)930_%7D85BZ[VA1%25~V.png 这个问题困扰了我一天,在vivo小游戏中加载不出来主场景。已经按照社区提示修改为分离模式,并更新到最新的node.js,但打出来的vivo小游戏包,还是无法运行 附件 : -...

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

1950. 微信小游戏设置Laya.URL.basePath后无效,atlas也出bug [ 50%]

...到,还有一个图找不到。找不到的文件名是font_jindutiao1.png。我确定atlas成功下载下来,并且有三个控件分别用到abc三个图,只有2个能显示出来+一个报错。如果没有设置Laya.URL.basePath一切正常。 微信:Laya.URL.basePath设置无效。log...

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