cocos-enhance-kit/demo/assets/main.ts

21 lines
409 B
TypeScript
Raw Normal View History

2022-06-13 13:51:01 +00:00
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;
2022-07-05 10:10:58 +00:00
cc.sp.charAtlasAutoBatchCount = 2;
cc.macro.CLEANUP_IMAGE_CACHE = false;
2022-06-13 13:51:01 +00:00
cc.dynamicAtlasManager.maxFrameSize = 2048;