mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-26 11:48:29 +00:00
21 lines
409 B
TypeScript
21 lines
409 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.sp.charAtlasAutoBatchCount = 2;
|
|
cc.macro.CLEANUP_IMAGE_CACHE = false;
|
|
cc.dynamicAtlasManager.maxFrameSize = 2048;
|