mirror of
https://github.com/cheney2013/UIState.git
synced 2024-12-26 03:39:10 +00:00
09f8c3b46b
1.大幅提高编辑状态时的性能 2.更方便记录自定义组件
9 lines
180 B
TypeScript
9 lines
180 B
TypeScript
import { Label, _decorator } from "cc";
|
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass
|
|
export class CustomLabel extends Label{
|
|
@property
|
|
customProp:string = "test";
|
|
} |