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

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

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

...的引入改成相对路劲,就报其他的路径找不到。 出错了: TypeScript error: node_modules/@types/node/index.d.ts(50,22): Error TS6053: File 'node_modules/@types/node/base.d.ts' not found.     请问要怎么设置,怎么放各种文件,才能把这个node_modules下的第三方...

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

2. node_modules/@types/ . 编译报错 [ 96%]

node_modules/@types/ . 编译报错 TypeScript error: ../../../node_modules/@types/node/index.d.ts(38,22): Error TS6053: File '../../../node_modules/@types/node/inspector.d.ts' not found. 我之前装过这个.后来删了..但是每次编译还是报错0.0 2019-01-19 添加评论 免费帖 --> 分...

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

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

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

4. TypeScript 泛形方法如何传TYPE? [ 93%]

TypeScript 泛形方法如何传TYPE? GetComponetInChild(node:laya.display.Node):Laya.Animator { for (var index = 0; index < node._childs.length; index++) { var element:Laya.Animator = node._childs[index].getComponentByType(Laya.Animator); if (element!=null) { return element; }else this.GetCompo...

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

5. 关于@prop {name:Tab,type:Node} 我觉得好麻烦啊 ,请问一下有别的方法吗 [ 92%]

关于@prop {name:Tab,type:Node} 我觉得好麻烦啊 ,请问一下有别的方法吗 我目前是都是以节点拖进去后 as转换 才可以用的 有正常一点的方法吗 就想cocos 直接改对应的 比如 Laya.Button 这种 或者U3D public 直接拉进去 2018-12-10 添加评论 免...

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

6. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 91%]

...refab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” 我从unity工程导出prefab到layaair中使用,根据文档中的介绍,使用如下代码加载prefab资源,             Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler...

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

7. Nodes 标签怎么使用 [ 90%]

Nodes 标签怎么使用   /** @prop {name:menuGoodsItems, type:Nodes}*/ menuGoodsItems: Laya.Box;   IDE中怎么给这个赋值 2019-03-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 bpmf_d 赞同来自: we...

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

8. XmlDom类没有了?解析xml时,报错Property 'attributes' does not exist on type 'Node & ChildNode'. [ 89%]

...没有了?解析xml时,报错Property 'attributes' does not exist on type 'Node & ChildNode'. XmlDom没有了吗?要用哪个类? 我只找到原生的XMLDocument,可是报错 Property 'attributes' does not exist on type 'Node & ChildNode'. 谁 遇到过?let local_config:XMLDocum...

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

9. 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. [ 89%]

使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 2017-09-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 zcourage 赞同来自: illegaldriver 、煜寒了 、182*****089 、137*****...

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

10. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 88%]

...property instanceof Material) {                     switch (node.type) {                         case KeyFrameValueType.Float:                             property = property.getFloat(node.getPropertyByIndex(i));                             break;  ...

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