mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-26 03:38:29 +00:00
19 lines
336 B
TypeScript
19 lines
336 B
TypeScript
const { ccclass, property } = cc._decorator;
|
|
|
|
@ccclass
|
|
export default class Main extends cc.Component {
|
|
|
|
@property(cc.Label)
|
|
version: cc.Label = null;
|
|
|
|
|
|
protected start(): void {
|
|
this.version.string = `Version: v${cc.sp.version}\n`;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
cc.sp.labelRetinaScale = 2;
|
|
cc.dynamicAtlasManager.maxFrameSize = 2048;
|