Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Why can't I make a prefab?

Discussion in 'Editor & General Support' started by mrpmorris, Dec 22, 2017.

  1. mrpmorris

    mrpmorris

    Joined:
    Dec 25, 2012
    Posts:
    50
    In earlier versions of Unity (now using 2017.2.1f1) I could drag an object from the scene Hierarchy into the Project window and it would create a prefab. This no longer seems to be working for me. I have also tried creating a new prefab and dropping the object onto that, but that doesn't work either.

    I am successful if I drop something simple like a camera/light, but the object I want to turn into a prefab won't cooperate.

    Please see attached video. It also doesn't work if I drop the object into the tree structure of the Project window.
     

    Attached Files:

  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Your video looks like you're trying to drag an entire scene and make a prefab out of it. You can't do that. You have to grab GameObjects, not the scene container.

    Maybe you're getting confused because in earlier versions of Unity before Unity allowed running multiple scenes at the same time, there was no scene container in the hierarchy. At that time GameObjects were at the root of the hierarchy, but that isn't the case now. When they added running multiple scenes at the same time they added the scene container (so you can keep track of what GameObjects are part of what scene), but the scene container is not a GameObject, so can't be made into a prefab.
     
  3. mrpmorris

    mrpmorris

    Joined:
    Dec 25, 2012
    Posts:
    50
    No, it's just an empty game object, I just gave it a name that ends with "scene".

    Upgrading to the latest version of Unity fixed the problem, though :)

    Thanks for your time!