1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 00:08:52 -05:00
gitattributes/Unity.gitattributes

162 lines
4.4 KiB
Plaintext
Raw Normal View History

2023-07-31 15:19:26 -04:00
# Define macros (only works in top-level gitattributes files)
2023-07-27 20:32:25 -04:00
[attr]lfs filter=lfs diff=lfs merge=lfs -text
2024-03-01 15:27:52 -05:00
[attr]unity-json eol=lf linguist-language=json
2023-07-31 15:52:21 -04:00
[attr]unity-yaml merge=unityyamlmerge eol=lf linguist-language=yaml
2023-07-27 18:13:20 -04:00
# Optionally collapse Unity-generated files on GitHub diffs
2023-07-27 20:32:25 -04:00
# [attr]unity-yaml merge=unityyamlmerge text linguist-language=yaml linguist-generated
2024-03-01 15:27:52 -05:00
# Unity source files
2023-07-27 20:32:25 -04:00
*.cginc text
*.compute text linguist-language=hlsl
*.cs text diff=csharp
2024-03-01 15:27:52 -05:00
*.hlsl text linguist-language=hlsl
2023-07-27 20:32:25 -04:00
*.raytrace text linguist-language=hlsl
*.shader text
2023-07-28 21:13:42 -04:00
# Unity JSON files
2024-03-01 15:27:52 -05:00
*.asmdef unity-json
*.asmref unity-json
*.index unity-json
*.inputactions unity-json
*.shadergraph unity-json
*.shadersubgraph unity-json
2023-07-28 21:13:42 -04:00
# Unity UI Toolkit files
2023-07-27 20:32:25 -04:00
*.tss text diff=css linguist-language=css
*.uss text diff=css linguist-language=css
2023-07-28 19:49:25 -04:00
*.uxml text linguist-language=xml linguist-detectable
2019-06-15 06:17:55 -04:00
# Unity YAML
2023-07-27 20:32:25 -04:00
*.anim unity-yaml
*.asset unity-yaml
*.brush unity-yaml
*.controller unity-yaml
*.flare unity-yaml
*.fontsettings unity-yaml
*.giparams unity-yaml
*.guiskin unity-yaml
2023-07-27 21:16:34 -04:00
*.lighting unity-yaml
2023-07-27 20:32:25 -04:00
*.mask unity-yaml
*.mat unity-yaml
*.meta unity-yaml
*.mixer unity-yaml
*.overrideController unity-yaml
*.playable unity-yaml
*.prefab unity-yaml
2023-07-28 21:05:53 -04:00
*.preset unity-yaml
2023-07-27 20:32:25 -04:00
*.renderTexture unity-yaml
*.scenetemplate unity-yaml
*.shadervariants unity-yaml
2023-07-28 20:01:55 -04:00
*.signal unity-yaml
2023-07-27 20:32:25 -04:00
*.spriteatlas unity-yaml
2023-07-27 21:16:34 -04:00
*.spriteatlasv2 unity-yaml
2023-07-27 20:32:25 -04:00
*.terrainlayer unity-yaml
*.unity unity-yaml
2019-06-15 06:17:55 -04:00
# "physic" for 3D but "physics" for 2D
2023-07-27 20:32:25 -04:00
*.physicMaterial unity-yaml
*.physicsMaterial2D unity-yaml
2019-06-15 06:17:55 -04:00
2023-07-31 15:32:14 -04:00
# Exclude third-party plugins from GitHub stats
Assets/Plugins/** linguist-vendored
2019-06-15 06:17:55 -04:00
# Unity LFS
2023-07-31 15:19:26 -04:00
*.cubemap lfs
*.unitypackage lfs
2019-06-15 06:17:55 -04:00
# 3D models
2023-07-31 15:19:26 -04:00
*.3dm lfs
*.3ds lfs
*.blend lfs
2023-07-31 15:19:26 -04:00
*.c4d lfs
*.collada lfs
*.dae lfs
*.dxf lfs
*.FBX lfs
*.fbx lfs
*.jas lfs
*.lws lfs
*.lxo lfs
*.ma lfs
*.max lfs
*.mb lfs
*.obj lfs
*.ply lfs
*.skp lfs
*.stl lfs
*.ztl lfs
2019-06-15 06:17:55 -04:00
# Audio
2023-07-31 15:19:26 -04:00
*.aif lfs
*.aiff lfs
*.it lfs
*.mod lfs
*.mp3 lfs
*.ogg lfs
*.s3m lfs
*.wav lfs
*.xm lfs
2019-06-15 06:17:55 -04:00
# Video
2023-07-31 15:19:26 -04:00
*.asf lfs
*.avi lfs
*.flv lfs
*.mov lfs
*.mp4 lfs
*.mpeg lfs
*.mpg lfs
*.ogv lfs
*.wmv lfs
2019-06-15 06:17:55 -04:00
# Images
2023-07-31 15:19:26 -04:00
*.bmp lfs
*.exr lfs
*.gif lfs
*.hdr lfs
*.iff lfs
*.jpeg lfs
*.jpg lfs
*.pict lfs
*.png lfs
*.psd lfs
*.tga lfs
*.tif lfs
*.tiff lfs
*.webp lfs
2019-06-15 06:17:55 -04:00
# Compressed Archive
2023-07-31 15:19:26 -04:00
*.7z lfs
*.bz2 lfs
*.gz lfs
*.rar lfs
*.tar lfs
*.zip lfs
2019-06-15 06:17:55 -04:00
# Compiled Dynamic Library
2023-07-31 15:19:26 -04:00
*.dll lfs
*.pdb lfs
*.so lfs
2019-06-15 06:17:55 -04:00
# Fonts
2023-07-31 15:19:26 -04:00
*.otf lfs
*.ttf lfs
2019-06-15 06:17:55 -04:00
# Executable/Installer
2023-07-31 15:19:26 -04:00
*.apk lfs
*.exe lfs
2019-06-15 06:17:55 -04:00
# Documents
2023-07-31 15:19:26 -04:00
*.pdf lfs
2019-06-15 06:17:55 -04:00
# ETC
2023-07-31 15:19:26 -04:00
*.a lfs
*.reason lfs
*.rns lfs
2019-06-15 06:17:55 -04:00
2020-10-19 06:17:10 -04:00
# Spine export file for Unity
2023-07-31 15:19:26 -04:00
*.skel.bytes lfs
# Exceptions for .asset files such as lightning pre-baking
LightingData.asset binary