- Home /
project organisation: managing source and/or libraries
I come from a C++ background. I am used to having one instance of each source file somewhere on my computer and including them into my main project where required. I can have some container classes somewhere, some graphics code somewhere else and include them in my game project (the actual source files do not get copied they remain in situ). If I find that something in, say, the container class needs editing, I can make that change within the game project and the change will be reflected in all the projects that file is included in.
Is there a way of doing this when using csharp and unity?
thanks
Answer by Antony-Blackett · May 04, 2011 at 09:18 AM
My solution for this is through the use of SVN and SVN externals. If you don't know what an external is it's basically a link from a folder in you repository to another folder in the same repository or any other repository.
What I then do is have these externals inside me Assets folder for all my projects all referencing the same repository. Simply update edit and commit as normal and all instances of those files will be updated.
I'm unsure if there is another way to do this without SVN externals but I haven't tried.
This solution also works cross platform as well which is good.
Answer by NineNineFive · Aug 09, 2013 at 09:04 PM
For your question about doing it in some kind of coding i don't know. But an easier solution for handling multiple computers for files i can recommend skydrive.
i'm using it. It's very fast with adding files to all the computers sharing the folders. The only thing it has hard handling is more computers saving the same gamescene. So if 1 work on game Scene at a time it would be very easy. Sync is possible it just takes some time for gamescene. Good if you have many programmers.
Your answer
Follow this Question
Related Questions
Source Control on Project Settings 0 Answers
Reference to a library 1 Answer
How do I open an existing project in Unity? 6 Answers
Project won't open unless I delete my Library folder. Why? 0 Answers
[SOLVED] The High Definition Render Pipeline has compiler errors when creating a new project. 1 Answer