Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    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:
    3
    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:
    3
    Nevermind - it seems that the collab feature had missed some changes which meant it was using an out-dated prefab
     
unityunity