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

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

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

...lper but module 'tslib' cannot be found.     at error (D:\Program Files\nodejs\node_global\npm\node_modules\layaair2-cmd\node_modules\rollup\dist\shared\node-entry.js:5400:30)     at throwPluginError (D:\Program Files\nodejs\node_global\npm\node_modules\layaair2-cmd\node_modules\rollup\dist\sh...

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

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

...对路劲,就报其他的路径找不到。 出错了: 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下的第三方库protobufjs在La...

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

3. 安装layaair2-cmd一直失败 [ 99%]

...Roaming\npm\layaair2-cmd -> C:\Users\Administrator\AppData\Roaming\np m\node_modules\layaair2-cmd\layaair2-cmd.js > core-js@2.6.11 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\no de_modules\core-js > node -e "try{require('./postinstall')}catch(e){}" Thank...

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

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

...he actual version of core-js. npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/layaair2-cmd/node_modules/mozjpeg npm ERR! command failed npm ERR! command sh -c node lib/install.js npm ERR! fs.js:47 npm ERR! } = primordials; npm ERR!     ^ npm ERR!  npm ERR! ReferenceError: primordials is...

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

5. 引用Node.js码时报错 [ 97%]

引用Node.js码时报错 Node.js程式码片段var modulus = new Buffer(modulus_b64, 'base64'); 直接点击Buffer移置定义发现index.d.ts裡有写 但这行划了红线 直接使用Buffer会报 Buffer is not defined 改成Laya.Buffer则不能工作 有没有具体上引用的方法呢   附...

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

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

destroy节点后,报错 /* 从舞台移除模型对象 @param node 节点 */ base_remove(node){ if(node.numChildren<=0)return; console.log('移除',node.name); let obj; for(let i=node.numChildren-1;i>=0;i--){ obj= node.getChildAt(i); obj.destroy(); } }   或者 /* 从舞台移除模型对...

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

7. LAYA AIR ide1.7.1beta 网页跟手机调试不能用 [ 96%]

...api [as api] (f:\LayaAirIDE_1.7.1_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeConnection.js:56:28) at ChromeDebugAdapter.get chrome [as chrome] (f:\LayaAirIDE_1.7.1_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\...

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

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

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

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

9. 在laya中如何使用node.js呢? [ 96%]

在laya中如何使用node.js呢? 如题所述。 现在由于想通过node.js获取硬盘上某一文件的路径,如何在laya中调用node.js啊?   2018-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

10. 错误提示很好,但是还是不知道我代码哪里出了问题 [ 96%]

...api] (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeConnection.js:56:28)     at ChromeDebugAdapter.get chrome [as chrome] (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chro...

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