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

Quick question: what needs to be under SCM?

Discussion in 'General Discussion' started by ErisCaffee, Feb 9, 2016.

  1. ErisCaffee

    ErisCaffee

    Joined:
    Nov 26, 2014
    Posts:
    127
    Should I put only the Assets folder under version control, or the entire project folder? Not knowing what all Unity is putting in the other folders, I don't know if they need protection or if they are auto generated based on the Assets folder.
     
  2. ErisCaffee

    ErisCaffee

    Joined:
    Nov 26, 2014
    Posts:
    127
    For that matter, what about all of the meta files? Can I safely put those in .gitignore?
     
  3. aer0ace

    aer0ace

    Joined:
    May 11, 2012
    Posts:
    1,513
  4. dwit_mass_creation

    dwit_mass_creation

    Joined:
    Jun 18, 2015
    Posts:
    74
    You need only two folders under version control:
    /Assets (with all .meta files)
    /ProjectSettings

    And turn "Asset Serialization" to "Force Text" (Edit -> Project Settings -> Editor).
     
    aer0ace and Kiwasi like this.
  5. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Don't ignore meta files. They are arguably more important then the assets themselves.
     
  6. ErisCaffee

    ErisCaffee

    Joined:
    Nov 26, 2014
    Posts:
    127
    Thanks guys. Much appreciated!