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

大约有 1,345 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0060 秒)

1. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 100%]

Laya2.0导入protobufjs第三方库,报错找不到文件  Laya2.0 在Main.ts里:import protoAll = require("../libs/protoAll"); var pCls = protoAll.com.bee.protobuf.ClimbingTowerInfoProto; var p: protoAll.com.bee.protobuf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = t...

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

2. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 97%]

unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function var role3D: Laya.Sprite3D = Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D);  //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播...

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

3. 使用2.6引擎版本vscode开发不支持async await语法 编译出现提示缺少tslib错误 [ 97%]

LayaAir引擎 使用2.6引擎版本vscode开发不支持async await语法 编译出现提示缺少tslib错误 错误提示:This syntax requires an imported helper but module 'tslib' cannot be found    semantic error TS2354: This syntax requires an imported helper but module 'tslib' cannot be fo...

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

4. node_modules/@types/ . 编译报错 [ 97%]

...9 0 2 分享 微博 QZONE 微信 Chiuan 赞同来自: 我知道了。osx在laya的运行文件里面有。。不是系统的位置 2019-01-21 0 3 分享 微博 QZONE 微信 Chuan 赞同来自: 请问下大佬是删除引擎node_modules下的node,还是系统的node呢? 2019-01-24 0 1 分享 微...

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

5. 安装layaair2-cmd一直失败 [ 96%]

安装layaair2-cmd一直失败 C:\Users\Administrator>npm i layaair2-cmd -g npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage  due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. C:\Users\Admini...

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

6. 构建报错,TypeScript error: node_modules/@types/node/base.d.ts' not found. [ 96%]

LayaAir引擎 LayaAir IDE 构建报错,TypeScript error: node_modules/@types/node/base.d.ts' not found. 有人遇到这个问题么?构建直接报错,无法打包!  开始编译: Tue Jan 07 2020 15:34:09 GMT+0800 (CST) -------------------------------------- [15:34:09] Working directory ch...

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

7. destroy节点后,报错 [ 96%]

...报错 at Scene3D.__proto._update (file:///D:/minigame/throwball/bin/libs/laya.d3.js:34104:15)   at Stage.__proto.render (file:///D:/minigame/throwball/bin/libs/laya.core.js:31069:23)   at Stage.__proto._loop (file:///D:/minigame/throwball/bin/libs/laya.core.js:31018:8)   at loop (file:///D:/mini...

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

8. 全局安装layaair2-cmd报错怎么办啊 [ 95%]

全局安装layaair2-cmd报错怎么办啊 npm WARN deprecated core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothi...

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

9. 如何能够clone一个node(包括node所有的子节点, 以及所有节点上的compnent,属性) [ 95%]

...内容相关的链接 提交 2 个回复 138*****161 赞同来自: 目前laya不支持2d对象clone功能 2019-06-09 0 0 分享 微博 QZONE 微信 nevercai 赞同来自: 138*****161 这就是prefab的功能了。Laya.loader.load([{url:"prefab/ButtonA.json", type:Laya.Loader.PREFAB}], Laya.Handler.c...

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

10. 不带格式后缀的图片无法成功加载 [ 95%]

...ck.pglstatp-toutiao.com/obj/ad.union.api/e285dd263aee2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = ...

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