查看creator.d.ts中导出的ccclass函数:
@ccclass("MyName")
class MyName {
@property(cc.Label)
label: cc.Label = null;
@property()
aa: string = "wwwwww";
}
查看creator.d.ts中导出的ccclass函数:
@ccclass("MyName")
class MyName {
@property(cc.Label)
label: cc.Label = null;
@property()
aa: string = "wwwwww";
}