[LayaAir 2.0]laya2.0TS版本debugpanel报错
刚下了个2.0,想弄出debug面板,但是不成功。index里导入了debugtool.js
然后文档里写了Laya.DebugPanel.init();
编译报错
TypeScript error: src/start.ts(6,14): Error TS2339: Property 'DebugPanel' does not exist on type 'typeof Laya'.
表示很无奈。也检查过了libs文件夹 里面也有js文件,但是就是编译不过去。
我还需要做什么操作吗?
然后文档里写了Laya.DebugPanel.init();
编译报错
TypeScript error: src/start.ts(6,14): Error TS2339: Property 'DebugPanel' does not exist on type 'typeof Laya'.
表示很无奈。也检查过了libs文件夹 里面也有js文件,但是就是编译不过去。
我还需要做什么操作吗?
没有找到相关结果
已邀请:
1 个回复
Aar0n
赞同来自: 虎威
Laya.enableDebugPanel();