Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This is the .gitignore file that I use for my Unity3D projects. Note that all my scripts are in a folder called Scripts, so all other scripts will be ignored. All other assets are ignored. Project files are conserved.
# System files
Thumbs.db
Thumbs.db.meta
*.DS_Store
*.directory
.vs
.vscode
# Build files
*.apk
*.obb
# Lightmaps
*.exr
*.exr.meta
LightmapSnapshot.asset
LightmapSnapshot.asset.meta
LightingData.asset
LightingData.asset.meta
# Visual Studio files
*.cachefile
*.csproj
*.pidb
*.sln
*.suo
*.unityproj
*.user
*.userprefs
*.v11
*.v12
# Folder to exclude
[Bb]in
[Dd]ebug*/
[Rr]elease*/
Builds/
ipch/
Library/
obj/
Temp/
UWP/
WindowsStore/
WS/
UnityVS/
UnityVS.meta
# Folders to keep
!Assets/Vendors/InControl/Source/Debug/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment