Fixed prefabs and prefab instancing

This commit is contained in:
Antoine Pilote
2023-08-09 00:30:38 -04:00
parent 67b8ca50fd
commit 67577b902b
5 changed files with 53 additions and 39 deletions

View File

@@ -8,7 +8,7 @@ namespace Nuake
Ref<Prefab> prefab = CreateRef<Prefab>();
ParentComponent parentC = entity.GetComponent<ParentComponent>();
prefab->EntityWalker(entity);
prefab->Root = entity;
return prefab;
}