Skip to content

Instantly share code, notes, and snippets.

@teocomi
Created September 13, 2016 15:01
Show Gist options
  • Star 65 You must be signed in to star a gist
  • Fork 18 You must be signed in to fork a gist
  • Save teocomi/fbd014c26c63c7c1055d025e2339dea7 to your computer and use it in GitHub Desktop.
Save teocomi/fbd014c26c63c7c1055d025e2339dea7 to your computer and use it in GitHub Desktop.
Gitignore for Unity projects
# =============== #
# 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/
@Ivan02q
Copy link

Ivan02q commented Oct 2, 2020

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.

@halivudestevez
Copy link

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)

Copy link

ghost commented Jan 8, 2021

This ignores tracking the .sln @halivudestevez.

@Kurasami
Copy link

Kurasami commented Feb 6, 2021

.vsconfig could be added too, which is created by Visual Studio in the project root DIR.

@njelly
Copy link

njelly commented May 4, 2022

UserSettings/ should be added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment