Creating a new project and importing it to a Subversion repository.
First, let’s assume that we have a subversion repository at
svn://my.svn.server.com/ and want to create a project at
svn://my.svn.server.com/MyUnityProject. Then follow these steps to create the initial import in the system:
- Create a new project inside Unity and call it
InitialUnityProject. You can add any initial assets here or add them later on.
- Enable Visible Meta files in
- Quit Unity (this ensures that all the files are saved).
- Delete the
Librarydirectory inside your project directory.
- Import the project directory into Subversion. If you are using the command line client, this is done like this from the directory where your initial project is located:
svn import -m"Initial project import" InitialUnityProject svn://my.svn.server.com/MyUnityProjectIf successful, the project should now be imported into subversion and you can delete the
InitialUnityProjectdirectory if you wish.
- Check out the project back from subversion
svn co svn://my.svn.server.com/MyUnityProjectAnd check that the
ProjectSettingsdirectory are versioned.
- Open the checked out project with Unity by launching it while holding down the Option or the left Alt key. Opening the project will recreate the
Librarydirectory in step 4 above.
- Optional: Set up an ignore filter for the unversioned
svn propedit svn:ignore MyUnityProject/Subversion will open a text editor. Add the Library directory.
- Finally commit the changes. The project should now be set up and ready:
svn ci -m"Finishing project import" MyUnityProject