7 lines
145 B
TypeScript
Raw Normal View History

2023-06-07 17:19:10 +08:00
const { ccclass, property } = cc._decorator;
@ccclass
2023-06-07 17:19:10 +08:00
export class CustomLabel extends cc.Label{
@property
customProp:string = "test";
}