Search Unity

How to merge .meta files when merging scripts between projects?

Discussion in 'Scripting' started by GarthSmith, Sep 20, 2017.

  1. GarthSmith

    GarthSmith

    Joined:
    Apr 26, 2012
    Posts:
    1,240
    Hello!

    I'm in a situation where we have multiple projects and we want to start sharing a folder between them. The problem I am running into is that two projects have different GUIDs assigned to a script in that script's .meta file. This means if I start sharing the .meta file between the projects, the GUID will change for one of the projects causing that script to become disassociated from prefabs and scene objects.

    Does anyone know how to change the GUID of a script while keeping it associated with a bunch of prefabs?
     
  2. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    Compile the shared code to a DLL and share the DLL between projects. That's what they're for :)
     
    mysticvalleycsa likes this.