Include Library/*.asset files for Unity3D #3068
Conversation
For me it made sense to also include the [Ll]ibrary/*.asset files. This includes e.g. the build target and build settings so after cloning on a different device I don't have to go to the Build settings and switch platform or re-add all required scenes.
|
Please update your Pull Request title to mention that it's affecting |
|
@Coeur Done. Sorry for the inconvenience! |
|
@jdpoenisch thanks for the contribution!
Does anyone else agree or disagree with this change? cc @Flate @shana @johnsoncodehk @FutureClemens @ksmit799 @LucasSteer @matzar @cscharfen |
|
The library folder is a cache folder, and as such would only serve to clutter commits. Rather then relying on cached configuration options, I would recommend setting up your own build scripts to simplify the building process across devices (see here). |
That's true in general for the Library folder .. that's why it is ecluded by the gitignore already. Just as said for me it made sense to keep at least some of the I noted there are some that really make no sense to keep as they change every time like e.g. but I definitely want to keep e.g. |
|
You're free to make your own local changes, however in general I think many developers would not want their build configurations being tracked by git. This is especially true when working on multi-team projects, as there will often be several different developers building with different configurations simultaneously. |
|
In a simple case, osx and windows build settings are not common, like ios build only exists in osx and not in windows. |
Absolutely true! |
It seems like it would require some extra set-up for Mark, I've put Regardless, I'd say there might be an argument against putting this one into the official |
|
@der-hugo It is probably to late to tell you now or you already figured it out yourself, but in case not or someone else comes across this, you might be interested in Unity Cache Server / Unity Accelerator depending on your Asset Import Pipeline. |
Reasons for making this change:
For me it made sense to also include the [Ll]ibrary/*.asset files.
This includes e.g. the build target and build settings so after cloning on a different device I don't have to go to the Build settings and switch platform or re-add all required scenes.
Links to documentation supporting these rule changes:
There isn't really one, this is just my experience.