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

19 lines
336 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;
cc.dynamicAtlasManager.maxFrameSize = 2048;