Search Unity

Sub prefabs not spawning their children

Discussion in 'Prefabs' started by AmbOcclusion, Jul 4, 2018.

  1. AmbOcclusion

    AmbOcclusion

    Joined:
    Sep 17, 2012
    Posts:
    28
    Hello! I am doing a networked game and I'm using DunGen to generate procedural dungeons. I have run into an issue where when I spawn a dungeon on user connect, it will not spawn the child prefabs with it. I have recreated a similar setup where I spawn the exact same prefab on server start, but I do not encounter the same issue. If someone from Unity would like a copy of my project, I'd be more than willing to send it privately.
     
  2. runevision

    runevision

    Unity Technologies

    Joined:
    Nov 28, 2007
    Posts:
    1,594
    Does this only happen with the ImprovedPrefabs builds? We have not changed runtime behavior of Prefabs, so it sounds odd if you're experiencing changes in how your game runs, compared to other versions of Unity.
     
  3. AmbOcclusion

    AmbOcclusion

    Joined:
    Sep 17, 2012
    Posts:
    28
    Yes only in the improved prefabs build, I added a sub-prefab under a parent one, and when instantiating it through DunGen, the sub prefabs fail to appear at all. I'd love to share some code but I can't isolate it to reproduce the issue, I'd have to send the entire project I think.