[LayaAir 2.0]layaMaxUI.ts的自动生成代码bug

版本 laya_ide_2.0.2_beta, 
ts版本, 
内嵌模式
自己编写SceneBase作为 Scene的基类 在ide编辑模式中使用
 
运行demo 按F12 生成 代码如下
/**This class is automatically generated by LayaAirIDE, please do not make any modifications. */
import SceneBase from '../SceneBase'
import View=Laya.View;
import Dialog=Laya.Dialog;
var REG: Function = Laya.ClassUtils.regClass;
export module ui {
export class MainSceneUI extends Laya.SceneBase {
constructor(){ super()}
createChildren():void {
super.createChildren();
this.loadScene("MainScene");
}
}
REG("ui.MainSceneUI",MainSceneUI);
}



期待生成SceneBase, 结果仍然生成Laya.SceneBase
 
 
其他关联链接:
https://ask.layabox.com/question/41891
据说这个版本解决, 我等了很多天之后,测试仍然没有解决
 
 
这个bug给我带来极大困扰,请帮忙处理一下!!
 
 
 

186*****028

赞同来自:

换了一种定义基类的方法  f12导出仍然  是Laya.Scene 而不是Scene, 见附件

Aar0n

赞同来自:

你要import  自己那个 Laya.基类, 导出才是 没有laya. 的,这块没有地方说明

迦夜

赞同来自:

楼主有解决方案了吗

要回复问题请先

商务合作
商务合作