This commit is contained in:
szrpf 2023-10-02 14:09:05 +08:00
parent 3f3ee943a4
commit b5e019f7b8

View File

@ -9,7 +9,7 @@ const { ccclass, menu } = cc._decorator;
@ccclass @ccclass
@menu('Comp/SceneAdapter') @menu('Comp/SceneAdapter')
export default class SceneAdapter extends cc.Component { export default class SceneAdapter extends cc.Component {
protected onLoad() { protected start() {
let cvs = this.node.getComponent(cc.Canvas); let cvs = this.node.getComponent(cc.Canvas);
if (cvs === null) { if (cvs === null) {
cc.warn(`节点${this.node.name}没有cc.Canvas组件, SceneAdapter添加失败!`); cc.warn(`节点${this.node.name}没有cc.Canvas组件, SceneAdapter添加失败!`);