-
-
Save teocomi/fbd014c26c63c7c1055d025e2339dea7 to your computer and use it in GitHub Desktop.
# =============== # | |
# Unity generated # | |
# =============== # | |
[Tt]emp/ | |
[Oo]bj/ | |
[Bb]uild | |
/[Bb]uilds/ | |
/[Ll]ibrary/ | |
sysinfo.txt | |
*.stackdump | |
/Assets/AssetStoreTools* | |
*.apk | |
*.unitypackage | |
# ===================================== # | |
# Visual Studio / MonoDevelop generated # | |
# ===================================== # | |
[Ee]xported[Oo]bj/ | |
.vs/ | |
/*.userprefs | |
/*.csproj | |
/*.pidb | |
*.pidb.meta | |
/*.suo | |
/*.sln* | |
/*.user | |
/*.unityproj | |
/*.booproj | |
.consulo/ | |
/*.tmp | |
/*.svd | |
# ============ # | |
# OS generated # | |
# ============ # | |
.DS_Store* | |
._* | |
.Spotlight-V100 | |
.Trashes | |
Icon? | |
ehthumbs.db | |
[Tt]humbs.db | |
[Dd]esktop.ini | |
Corridor/Library/ShaderCache/ | |
Corridor/Library/metadata/ |
so the gitignore is definitly ok?
Yeah it works properly
Please remove Icon?
from the .gitignore!
The way this is set up, it will ignore all files that include Icon
followed by a letter. For example, I had a folder called Icons
which was completely ignored in my repo.
why not just use the github provided one? https://github.com/github/gitignore/blob/master/Unity.gitignore
why not just use the github provided one? https://github.com/github/gitignore/blob/master/Unity.gitignore
Because the official one assumes that your Unity project's root is the same one as your GitHub project, however it's better practice to put the Unity project inside a sub folder, this .gitignore allows you to do that.
Because the official one assumes that your Unity project's root is the same one as your GitHub project, however it's better practice to put the Unity project inside a sub folder, this .gitignore allows you to do that.
I had the same problem. You can either use */[Tt]emp/ */[Ll]ibrary/ */[Oo]bj/ and so on, but this would exclude any folders called temp. To solve this you could use the slightly messy solution of /SubFolder/[Tt]emp/ /SubFolder/[Ll]ibrary/ /SubFolder/[Oo]bj/ and so on if your unity project was in repository/SubFolder/.
No need for modifying anything, just add a .gitignore file to any subdirectory you want and it will just work™.
If you wanna share only assets files with you Team. This code if good for you.
Unity Collab shares only 4 files on there Collab. Assets, Project Settings, Packages and .collabIgnore (Git Ignore file) and that's it. You don't need any other files to work normally with team. Unity will build on your PC, Mac or whatever other files.
AFAIK Unity does not need sln, prj. Unity uses all the files that in the folder and its subfolder.
(but I'm new to Unity, I may error)
This ignores tracking the .sln
@halivudestevez.
.vsconfig could be added too, which is created by Visual Studio in the project root DIR.
UserSettings/
should be added
It's perfectly ok to do. Unity generates the .sln and .csproj on it's own.
Dependencies are stored in the .meta files.