大约有 180 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0033 秒)
发布微信小游戏运行错误,Class constructor xx cannot be invoked without 'new' 最终定位问题原因是给一个3d物体挂在脚本的时候 比如有个脚本是: class Test extends Laya.Script3D{ } 如xxx是一个3D节点,代码里执行: let script:Test = xxx.addComponent(Test...
来源: Laya_社区 发布时间: 20200309
ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found 环境win10 layaboxide 2.6.0 beta 已经全局安装typescript,命令行 tsc -v,输出Version 3.8.3 nodejs 12.16.1 编译报错: semantic error TS2354: [31mThis syntax requires an imported he...
来源: Laya_社区 发布时间: 20200409
...信小游戏中加载unity导出的场景报错the .lh file root type must be Scene 报错:the .lh file root type must be Scene。 看了下代码,是读取的.ls文件并不是按照数组方式读取的,而是安装字符串读取进来的,所以导致判断type失败: /** ...
来源: Laya_社区 发布时间: 20180101
升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' 将tsconfig.json里的"target":"es6"改为"es5"会报错: Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' 会升级到2.2.0Beta主要是看升级日志里,这个...
来源: Laya_社区 发布时间: 20190812
...a 预加载粒子文件时警告?请问是什么情况? GradientDataNumber warning:the forth key is be force set to 1. laya.d3.js:16710 GradientDataNumber warning:data count must lessEqual than 4 laya.d3.js:16716 GradientDataNumber warning:data count must lessEqual than 4 laya.d3.js:16716 Gradie...
来源: Laya_社区 发布时间: 20200110
微信小游戏报错 the .lh file root type must be Scene 引擎版本1.7.17beta private screen3DPath: string = "res/layaScene/xiangsuqiche.ls"; public LoadScene3D(): Laya.Scene { console.log("screen#DPath = " + this.screen3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.s...
来源: Laya_社区 发布时间: 20180323
...游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene 引擎使用的是1.7.17beta版本,下面是报错堆栈,附件是工程项目以及导出的小游戏项目。 Scene: the .lh file root type must be Scene,please use other function to load this file.;at api ...
来源: Laya_社区 发布时间: 20180317
...的吗? 发布微信小游戏运行错误,Class constructor xx cannot be invoked without 'new' 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' Uncaught TypeError: Class constructor Component cannot be invoked without 'new' Uncaught TypeError: ...
来源: Laya_社区 发布时间: 20170718
[LayaAir3]unity导出插件,报错 ArgumentNullException: Value cannot be null. Parameter name: key System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) (at <b5ac4fa8faf34bc9be9b9c54f8ce8a43>:0) System.Collections.Generic.Dictionary`2[TKey,TValue].ContainsKey (TKey key)...
来源: Laya_社区 发布时间: 20240201
...rayBuffer(4)) // also filters out NaN, non-number types, including empty strings, but allows bigints const valid = ms > 0 && ms < Infinity if (valid === false) { ...
来源: Laya_社区 发布时间: 20201201