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

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

1061. 【已解决】 sprite无法加载图片 [ 53%]

...多太大[超过50k],建议开始页面单独建立文件夹打包) Laya.loader.load("res/atlas/UI.atlas", null) chatLayer = new Sprite(); chatLayer.loadImage("chat.png"); Laya.stage.addChild(chatLayer); } 2018-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

1062. laya发布vivo小游戏失败 [ 53%]

...创建vivo快游戏项目 index.js:829 data stderr: internal/modules/cjs/loader.js:968 throw err; ^ Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vivo-minigame\cli\bin\mg' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at Function.Mo...

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

1063. Image和HtmlImageElement加载同一张图会显示不出来 [ 53%]

...; 10; ++i) {      var url:String = "res/xxx" + i + ".png";      Laya.loader.load(url); }   // 先Image var img:Image = new Image(); img.skin = "res/test1.png"; img.pos(100, 100); // 再Html var html = new HTMLDivElement(); html.innerHTML = "<img src='res/test1.png'/>"; html.pos(150, 10...

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

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

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

1065. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 53%]

... = 1; i <= 8; i++) urls.push(`${this.ANIMATION_PATH}move${i}.mc`); Laya.loader.load(urls, Laya.Handler.create(this, () => { for (let i = 1; i <= 8; i++) { const clipPath = `${this.ANIMATION_PATH}move${i}.mc`; // 检查资源是否存在 if (Laya.loader.getRes(clipPath)) { this.loadedClips.p...

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

1066. LayaUI中的input组件不显示 [ 53%]

...dres(); function loadres(){ var res=[ {'url':'res/atlas/comp.json'} ] Laya.loader.load(res,Laya.Handler.create(this,Main)); } function Main(){ Laya.stage.addChild(new loginUI()); } })();   附件 : --> 2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

1067. 分享:解决 QQ / 微信 获取头像跨域问题 [ 53%]

... 人 Spick • 2017-02-24 15:03 您好,请问一下:客户端直接用 loader 加载微信给的头像连接不可行是不是?因为我们服务器想让客户端自己保存微信的头像连接来使用 bluesea • 2017-09-23 18:27 上面的想法,在加载图片的时候,要等好久...

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

1068. [LayaAir3]spine显示不对 [ 53%]

...Normal()来切换一下渲染方式。   例如:onEnable(): void { Laya.loader.load("swk/zhujue_wk.skel", Laya.Handler.create(this, () => { this.owner.getComponent(Laya.Spine2DRenderNode).changeNormal(); })); }   2024-10-10 0 1 分享 微博 QZONE 微信 layabox 赞同来自: 已记录,我...

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

1069. t._addReference is not a function [ 53%]

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

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

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

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