ToBeContinueFix.ts
351 Bytes
import { DummyNode } from "./CCDummyObjects";
const {ccclass, property} = cc._decorator;
@ccclass
export default class ToBeContinueFix extends cc.Component {
onLoad () {
this.fixScreenSize();
}
fixScreenSize () {
if (cc.winSize.height < 1280) {
this.node.scale = cc.winSize.height / 1280;
}
}
}