unity3d老是有一堆乱七八糟的文件,好像不提交也不行,特别是那烦人的meta文件,哪到底unity项目提交到版本管理哪些东西可以忽略呢?应该设置些什么东西呢?
- 菜单,Edit => Project Settings => Edit
- Version Control => Visible Meta Files
- Asset Serialization Mode => Force Text
如图所示:
接着就是传说中的忽略文件设置,简单的说明一下就是,Assets不能忽略这个就不解释了,ProjectSettings不能忽略,忽略掉的话,比如像2d的层级设置tag等信息都存这里,
Library及Temp是可以忽略的,还有所有vs相关的也可以忽略
.vs /win32 # =============== # # Unity generated # # =============== # Temp/ Obj/ UnityGenerated/ Library/ Assets/AssetStoreTools* # ===================================== # # Visual Studio / MonoDevelop generated # # ===================================== # ExportedObj/ *.svd *.userprefs *.csproj *.pidb *.suo *.sln *.user *.unityproj *.booproj # ============ # # OS generated # # ============ # .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes Icon? ehthumbs.db Thumbs.db