From 78e5b017744ecfc2df889fe7fe29ef428d38f595 Mon Sep 17 00:00:00 2001 From: zheng han Date: Tue, 29 Dec 2020 17:19:14 +0800 Subject: [PATCH] fix prefab asset instaniate (#8044) --- cocos/core/utils/prefab-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/core/utils/prefab-utils.ts b/cocos/core/utils/prefab-utils.ts index 1b3c543095..7cfcbe7358 100644 --- a/cocos/core/utils/prefab-utils.ts +++ b/cocos/core/utils/prefab-utils.ts @@ -210,7 +210,7 @@ export function createNodeWithPrefab (node: Node) { legacyCC.game._isCloning = true; if (SUPPORT_JIT) { // @ts-expect-error: private member access - prefabInfo._doInstantiate(node); + prefabInfo.asset._doInstantiate(node); } else { // root in prefab asset is always synced const prefabRoot = prefabInfo.asset.data;