From b5e019f7b83162a587e50e4141e5e888a32ed982 Mon Sep 17 00:00:00 2001 From: szrpf <27185709@qq.com> Date: Mon, 2 Oct 2023 14:09:05 +0800 Subject: [PATCH] v1.4 --- assets/Script/SceneAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/Script/SceneAdapter.ts b/assets/Script/SceneAdapter.ts index 83a056a..a3b8ed9 100644 --- a/assets/Script/SceneAdapter.ts +++ b/assets/Script/SceneAdapter.ts @@ -9,7 +9,7 @@ const { ccclass, menu } = cc._decorator; @ccclass @menu('Comp/SceneAdapter') export default class SceneAdapter extends cc.Component { - protected onLoad() { + protected start() { let cvs = this.node.getComponent(cc.Canvas); if (cvs === null) { cc.warn(`节点${this.node.name}没有cc.Canvas组件, SceneAdapter添加失败!`);