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

Changing all my mesh in my scene as the same prefab without re-positioning ?

Discussion in 'Prefabs' started by dasweez, Mar 6, 2020.

  1. dasweez

    dasweez

    Joined:
    Mar 6, 2020
    Posts:
    2
    I created a scene with a mesh that I dupplicated a lots of time, with a precise rotation and a precise position

    How can I change them as a prefab without re-positioning all the objects ?
     
  2. CF-Games

    CF-Games

    Joined:
    Jun 2, 2013
    Posts:
    134
    I'm not sure if there's a simpler way, but you can create the prefab and then create an editor script to find all those objects and replace them with the prefab while keeping the original positions and rotations. I'm not exactly sure how this script would be written as I've never made an editor script before.