Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Prefab layer reverting to Default on Instantiate

Discussion in 'Prefabs' started by RisingSunStudios, Jul 31, 2019.

  1. RisingSunStudios

    RisingSunStudios

    Joined:
    May 23, 2018
    Posts:
    2
    As title says, my Prefab has its layer set to 9, all saved. When I instantiate a new instance of it, the prefab and all its children are now set to Layer 0 (Default).

    I could change it at runtime, but then I'd have to do so for every child in the heirachy.

    Also, the OrderInLayer is reverting back to zero as well.

    Is this a bug? Unity v2019.1.10f1

    edit - in fact, any changes I make to the prefab (scale, positions etc) are not reflected when I run the game and instantiate the object. Is there a cache somewhere that Unity is using that is out of sync??
     
    Last edited: Jul 31, 2019
  2. RisingSunStudios

    RisingSunStudios

    Joined:
    May 23, 2018
    Posts:
    2
    Nevermind - it seems that the collab feature had missed some changes which meant it was using an out-dated prefab