From d8cafd215f20f3852cfae34a276507f264ff770f Mon Sep 17 00:00:00 2001 From: Casey Hofland Date: Thu, 12 Jan 2023 17:02:37 +0100 Subject: [PATCH 1/4] Add Visual Studio Code cache directory Since a long time, developers have been able to use Visual Studio Code inside of Unity. I don't claim exactly to know how it works, but regardless its cache directory should be ignored, whether it is ever created or not (if not now, it might be in the future). --- Unity.gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Unity.gitignore b/Unity.gitignore index 58cbc825..557307f1 100644 --- a/Unity.gitignore +++ b/Unity.gitignore @@ -26,6 +26,9 @@ # Visual Studio cache directory .vs/ +# Visual Studio Code cache directory +.vscode/ + # Gradle cache directory .gradle/ From 37bc45039c3cc53c84a3c22dd242f7246afd13f3 Mon Sep 17 00:00:00 2001 From: Casey Hofland Date: Thu, 12 Jan 2023 17:04:36 +0100 Subject: [PATCH 2/4] Add Idea cache directory Idea is used by JetBrains (as to my understanding) and, as to my understanding, may in certain setups create cache directories. That's no good, these should be ignored. --- Unity.gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Unity.gitignore b/Unity.gitignore index 557307f1..1c3944b9 100644 --- a/Unity.gitignore +++ b/Unity.gitignore @@ -29,6 +29,9 @@ # Visual Studio Code cache directory .vscode/ +# Idea cache directory +.idea/ + # Gradle cache directory .gradle/ From d4c81e8602ecac6cc205f86357ba5c5d31f5f940 Mon Sep 17 00:00:00 2001 From: Casey Hofland Date: Thu, 12 Jan 2023 17:19:22 +0100 Subject: [PATCH 3/4] Add FMOD gitignore files There is really no reason to not include these by default. If you don't use FMOD, no harm done. But I've seen many teams fail to add this to their gitignore and getting unnecessary git conflicts that could have been easily avoided if this were in from the beginning. --- Unity.gitignore | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Unity.gitignore b/Unity.gitignore index 1c3944b9..0bae9e48 100644 --- a/Unity.gitignore +++ b/Unity.gitignore @@ -76,3 +76,21 @@ crashlytics-build.properties # Temporary auto-generated Android Assets /[Aa]ssets/[Ss]treamingAssets/aa.meta /[Aa]ssets/[Ss]treamingAssets/aa/* + +# Never ignore DLLs in the FMOD subfolder. +!/[Aa]ssets/Plugins/FMOD/**/lib/* + +# Don't ignore images and gizmos used by FMOD in the Unity Editor. +!/[Aa]ssets/Gizmos/FMOD/* +!/[Aa]ssets/Editor Default Resources/FMOD/* + +# Ignore the Cache folder since it is updated locally. +/[Aa]ssets/Plugins/FMOD/Cache/* + +# Ignore bank files in the StreamingAssets folder. +/[Aa]ssets/[Ss]treamingAssets/**/*.bank +/[Aa]ssets/[Ss]treamingAssets/**/*.bank.meta +# If the source bank files are kept outside of the StreamingAssets folder then these can be ignored. + +# Log files can be ignored. +fmod_editor.log From 682c73e0f7cd21b2dfcf83e41dcdef96cbdc3cdf Mon Sep 17 00:00:00 2001 From: Casey Hofland Date: Thu, 12 Jan 2023 17:20:37 +0100 Subject: [PATCH 4/4] Add temporary Blender files Unity allows you to directly add Blender files in Unity. Even though this is not recommended practice, some teams still prefer it. For these teams, temporary blender files should be ignored. --- Unity.gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Unity.gitignore b/Unity.gitignore index 0bae9e48..36d38853 100644 --- a/Unity.gitignore +++ b/Unity.gitignore @@ -94,3 +94,6 @@ crashlytics-build.properties # Log files can be ignored. fmod_editor.log + +# Ignore temporary Blender files. +*.blend[0-9]*