Last active
August 20, 2024 12:08
-
-
Save Vixxd/5a00247204b3ea56f551aea363b0665d to your computer and use it in GitHub Desktop.
Bakery Lightmapper .gitignore for Unity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################## | |
# Bakery .gitignore | |
# Ignore: https://geom.io/bakery/wiki/index.php?title=How_do_I...#How_do_I_use_git.2Fcollab.2Fother_version_control_system_with_Bakery.3F | |
# Never ignore: https://geom.io/bakery/wiki/index.php?title=How_do_I...#How_do_I_share_a_scene_with_someone_who_doesn.E2.80.99t_have_Bakery_installed.3F | |
######################################## | |
############# BAKERY ASSETS ############ | |
# Ignore Bakery Assets folder | |
/[Aa]ssets/Bakery/* | |
# Never ignore these Bakery Asset files | |
# Unignore specific files in ignored subdirectory https://stackoverflow.com/a/32504500/2129422 | |
!/[Aa]ssets/Bakery/ftLightmaps.cs | |
!/[Aa]ssets/Bakery/ftLightmapsStorage.cs | |
!/[Aa]ssets/Bakery/ftLocalStorage.cs | |
!/[Aa]ssets/Bakery/ftGlobalStorage.cs | |
!/[Aa]ssets/Bakery/BakeryProjectSettings.cs | |
############# BAKERY EDITOR ############ | |
#Ignore Bakery Editor folder | |
/[Aa]ssets/Editor/x64/Bakery/* | |
#Unignore subdirectories only https://stackoverflow.com/a/18930104/2129422 | |
!/[Aa]ssets/Editor/x64/Bakery/*/ | |
#Re-ignore all *files* in subdirectories | |
/[Aa]ssets/Editor/x64/Bakery/hwtestdata/* | |
/[Aa]ssets/Editor/x64/Bakery/lightingDataChunks/* | |
/[Aa]ssets/Editor/x64/Bakery/shaderSrc/* | |
/[Aa]ssets/Editor/x64/Bakery/scripts/* | |
# Never ignore these Bakery Editor files | |
!/**/ftModelPostProcessor.cs | |
!/**/ftSavedPadding2.cs |
Doh! I had a typo in my meta files. So this solved it for me, I just added in the meta files:
in # Unignore specific files in ignored subdirectory:
!/[Aa]ssets/Bakery/ftLightmaps.cs.meta
!/[Aa]ssets/Bakery/ftLightmapsStorage.cs.meta
!/[Aa]ssets/Bakery/ftLocalStorage.cs.meta
!/[Aa]ssets/Bakery/ftGlobalStorage.cs.meta
!/[Aa]ssets/Bakery/BakeryProjectSettings.cs.meta
and to # Never ignore these Bakery Editor files:
!//ftModelPostProcessor.cs.meta
!//ftSavedPadding2.cs.meta
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Really glad to have found this, was struggling to work out the correct order of things.
I'm still unable to get the lightmapping working on my team's computers though and I realised that my meta files are not being included. I've tried to manually add them to your lists, using the same syntax as you have here, but still no joy. Did you come across this issue? I know it's probably some conflict elsewhere, but just in case it is something you encountered too.