This commit is contained in:
szrpf
2023-07-07 11:05:08 +08:00
parent ebd0bc2305
commit 0c5d1f847d
4 changed files with 194 additions and 166 deletions

View File

@@ -21,5 +21,8 @@ export default class SceneAdapter extends cc.Component {
node.scale = cc.winSize.width / node.width;
}
}
if (!cc.sys.isMobile && !node.getComponent(cc.Mask)) {
node.addComponent(cc.Mask);
}
}
}