This commit is contained in:
szrpf
2023-08-11 13:42:03 +08:00
parent 6226fea8dc
commit 915fa263a6
6 changed files with 42 additions and 70 deletions

View File

@@ -27,8 +27,5 @@ 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);
}
}
}