rp_11001/assets/Game/scripts/game/StaticTxt.ts
2025-11-08 14:26:11 +08:00

25 lines
450 B
TypeScript

import { _decorator, Component, Label, Node } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('StaticTxt')
export class StaticTxt extends Component {
@property({
tooltip: '在lang.json中查找的key',
})
key: string = '默认值';
@property({
tooltip: '富文本才需要设置的最大文本宽度',
})
maxWidth: number = 800;
start() {
}
update(deltaTime: number) {
}
}