Search Unity

How to batch edit scenes? Add a prefab to every scene in the project?

Discussion in 'Immediate Mode GUI (IMGUI)' started by Botaurus, Jan 17, 2019.

  1. Botaurus

    Botaurus

    Joined:
    Feb 20, 2013
    Posts:
    81
    Im using Rewired and I want to add an instance of the input manager to every scene in my project. And in general, it would be nice to be able to manage the default prefab instances in all my scenes. Anyone know how to do this?
    thanks!
     
  2. There is no mass editing function for scenes. AFAIK.

    You can write an editor script for that. Check SceneManager API.
    - load up the scene lists from the build settings
    - open up a scene, add the gameobject, save the scene
    - repeat