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

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

111. 2.4.0bate IDE layaair2-cmd 安装错误求解 [ 79%]

...以下错误 PS D:\layagame\sblaya2> layaair2-cmd internal/modules/cjs/loader.js:638     throw err;     ^ Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\layaair2-cmd.js'     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:...

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

112. Laya.loader.create 加载进度问题 [ 79%]

Laya.loader.create 加载进度问题 我用Laya.loader.create加载.lh模型, function ModelManager() { Laya.loader.create("res/Pipe/Pipe/a.lh", Laya.Handler.create(this, this.onCreateComplete()),Laya.Handler.create(this, this.onAssetsLoading)); } ModelManager.prototype.onCreateComplete = functi...

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

113. Loader 加载一张图片后,可以把这张图片改名字吗 [ 79%]

Loader 加载一张图片后,可以把这张图片改名字吗 您好,各位大神好。  请问:Loader 加载一张图片后,可以把这张图片改名字吗。 比如:图片图径是res/a.png, 用Loader加载:Laya.loader.load([{url:"res/a.png", type:Laya.Loader.IMAGE}]); 现在...

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

114. this.animation.loadAtlas 加载失败 [ 78%]

... 2 人 asdf131 • 2017-09-05 16:34 这样的话是不是所有用到 Laya.loader的话 ,如果error 都往这里来了 cuixueying • 2017-09-06 17:11 你也可以loadAtals后,对laya.loader.load进行error监听!

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

115. QQ小游戏demo跑不起来 MiniFileMgr.fs.readFile无回调 [ 78%]

...sole.log("加载文件测试1", i, fileUrl);         })); 2、Laya.loader.load() 循环多个文件加载测试,均只能加载第一个文件,后续无回调。 3、MiniFileMgr.fs.readFilesync 同步可以读到文件。 4、Main.ts中 交换几个配置文件,均是第一个配置能...

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

116. Loader可以加载网络资源吗? [ 78%]

Loader可以加载网络资源吗? QQ玩一玩有10m包体限制,想把图集放服务器上,有接口吗 2018-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 可以加载网络资...

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

117. Cannot read property 'load' of null [ 78%]

...ayaAir引擎 Cannot read property 'load' of null 查了断点,看到Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static g...

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

118. [LayaAir3]自定义字体在移动浏览器不起作用 [ 78%]

...在移动浏览器就显示不了。我在项目启动之初使用了Laya.loader.load预加载字体,PC浏览器日志显示字体被加载了,移动浏览器有报错。     Laya.loader.load({ url: respath.font_SemiBold, type: Laya.Loader.TTF }, Laya.Handler.create(this, (obj: object) => {...

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

119. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 78%]

...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...

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

120. 分享:LayaAir下如何获取图集下的小图资源? [ 78%]

...import laya.display.Animation; import laya.display.Sprite; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.js...

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