Installing certain Unity packages will add something into Assets folder.
Three examples of packages:
ProBuilderwill create a smallAssets\ProBuilder Data\Default Material Palette.asset
TextMesh Prowill install 7 Mb (documentation, examples and actual assets) insideAssets\TextMesh Pro
The
Visual Effect Graphgoes even further by installing 27 Mb intoAssets\Samples\Visual Effect Graph\12.1.6\VisualEffectGraph Additions
Problem:
Assets folder is source controlled (I am using this .gitignore) and I was assuming that everything there is important. But above packages just add megabytes of their data (for a reason?) into it. And I don't know what should I do about it.
Custom Palette for ProBuilder is good to have, so I'd keep it. But what about others?? To example, in case of TextMesh Pro, I am not checking which fonts I am using and there are they located, maybe inside Assets, maybe somewhere else.
My questions:
- Should I just let those megabytes go into GitHub?
- Should I add another .gitignore into Assets folder and carefully control what from which new package I want to upload with source and what not?
- Perhaps some better solution exists?
- Is it normal what packages doing it "their own way" or Unity is still not yet finished settling its rules for even official stuff?
I am thinking that packages should only be references and not source controlled. I saw many resources are used from deep within Packages folder (which is not source controlled). And this is fine - I just need to install package and all dependencies on such resources will be resolved. But Assets is going to be double-resolved, which doesn't makes sense to me.