- Home /
Project size
Hey guys i got a little question
lets say i got 2 Transforms on my scene A and B
i save then both as prefab in my project folders
then if i creaty and empty object and put A and B as children and save it as prefab, is it gona use the A and B prefabs already saved or is it gonna increase my game size ?
Answer by Chris_Dlala · May 26, 2014 at 12:56 PM
Hi, your describing nested prefabs. Unity does not support nested prefabs, it flattens the new prefab and loses references to the old prefabs A and B. One way around this is to have a script on an object with references to the prefabs you want, instantiate those prefabs in that script and re-parent them to its gameObject at runtime (eg. in start or awake). I hope that helps =)
Oh, forgot about size! As far as I know the size of a prefab is negligible. You can set serialization format to force text in unity and open a prefab in a text editor to get an idea of what is saved for a prefab.
Your answer
![](https://koobas.hobune.stream/wayback/20220613145926im_/https://answers.unity.com/themes/thub/images/avi.jpg)