Search Unity

  1. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  2. Unity 2017.2 is now released.
    Dismiss Notice
  3. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  4. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  6. Unity 2017.3 beta is now available for download.
    Dismiss Notice

Prefab saving question

Discussion in 'Editor & General Support' started by fstim82, May 4, 2010.

  1. fstim82


    May 4, 2010
    I'm new to Unity. I've been tasked with adding functionality to a game options menu object and so I'm adding some sliders and check boxes, etc. The menu is instantiated in code, which loads the menu prefab. To add the items, I've added the prefab to a random scene, thinking I'd change the prefab, save it, and revert the scene. I can't seem to figure out how to save the prefab changes though. I've added the changes I need, so how do I save the .prefab file?
  2. Ramen Sama

    Ramen Sama

    Mar 28, 2009
    Well, if the game object in your scene editor is shown as blue, it's currently linked to a prefab. if not, it's not a prefab you're editing anymore.

    Create a new prefab in your project folder in unity. then drag your object from the hierarchical view onto the newprefab. this will create a new prefab. Or if you have a prefab already, drag and drop it ontop of it.
  3. kilik128


    Jul 15, 2013
    Hi i look for save 2 prefab at same time for more easy editing
    i have check Google and is look hard to find anyone can help
    please thank's
  4. victorbisaev


    Nov 13, 2013
    When you edit an instance of a prefab, changes do not save to the prefab. So to save the changes (and thus propagate them to all the other instances of the same prefab) just grab the newly edited instance of the prefab and drag-drop it into the prefab (the same prefab) in the 'Project' window of Unity. This action will replace the original prefab with edited one and update all existing instances of the prefab in your scene.
    In short, drag the instance from 'Hierarchy' back to 'Project' as you do when you initially create the content of the prefab.