Setting up a collaborative unity environment

The Beginning

We are two games designers who want to work on the same Unity file, each editing code and art work. Here I am going to explain how we set up an environment to do this:

Step 1

Following this tutorial we set up our first source controlled repository.

This means that all our source code is stored in the cloud so that both us can access it at any time. It also has a version history, so that we can rewind time if things break and see who has worked on things when.

Bitbucket is free for 5 or less users letting us keep all the code private, we could also have stored the information publicly on github – but seeing as the tutorial was good for bitbucket it seemed a shame not to use it.

The tutorial shows you how to use SourceTree which is a graphical representation of using Git through Terminal. By using SourceTree it makes the process a little more apparent for  first time source control users.

Step 2

Inviting your team member(s) to your bitbucket project. They will receive an email that allows them to access the code.

screen-shot-2017-02-01-at-13-38-46-copy

Step 3

Clone the repository using SourceTree onto the other persons computer. Choosing a folder to put the code into on their desktop.

Screen Shot 2017-02-01 at 13.41.57 copy.png

Step 4

Check everything in SourceTree. They might need to pull the code.

Screen Shot 2017-02-01 at 13.44.42.png

Step 5

They can then open the unity project and check it is working

Screen Shot 2017-02-01 at 13.46.43.png

Step 6

If they make a change in Unity, save and then go back to SourceTree. They should now have files that need to be staged -> committed -> pushed.

For more information on the process check out this tutorial.

You do not need to stage any: Library or Temp files.

Step 7

You can now go back to your computer and check SourceTree and if you need to pull any of their files. For further reading on source code control check out the Git Documentation.

You have now set up a collaborative unity environment where you can share information between a small team!

Screen Shot 2017-02-01 at 13.59.57.png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s