Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

What really needs version control?

Discussion in 'Editor & General Support' started by Crowsinger, Jun 17, 2022.

  1. Crowsinger

    Crowsinger

    Joined:
    Apr 23, 2022
    Posts:
    19
    Hello. I know where things that change are in my project, where my prefabs and scenes are, etc. Is this all that needs to go to version control? Or is there ever any reason for backing up asset packs in the project?

    Thank you
     
  2. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,204
    You want all the things that are necessary to rebuild your project. That means the Assets/ ProjectSettings/ and Packages/ folders. Packages/ is important, because it says which packages you have included in the project, and ProjectSettings/ should be obvious.
     
  3. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,196
    To clarify the „rebuild“ aspect: you need everything in source control so that you can download the project on a separate machine and be able to open the project and make a working build with it.

    Why is that important if you work alone? Because it‘s also going to be your backup. Somehow, your hard drive dies and all data on it. You want to be able to restore the project to a working state in that case.
     
  4. Crowsinger

    Crowsinger

    Joined:
    Apr 23, 2022
    Posts:
    19
    Thank you!