Skip to content

Instantly share code, notes, and snippets.

@FurkanKambay
Last active August 27, 2019 13:46
Show Gist options
  • Save FurkanKambay/228939374abd6a9f79c4486690cf3c0d to your computer and use it in GitHub Desktop.
Save FurkanKambay/228939374abd6a9f79c4486690cf3c0d to your computer and use it in GitHub Desktop.
Extensions used in Unity - Unity-Technologies/Git-for-Unity vs alexkaratarakis/gitattributes vs Unity Source Code (FindIconForFile method)
{
// https://github.com/Unity-Technologies/UnityCsReference/blob/0cf7cdad8092152ba078b4e306b4182608de040d/Editor/Mono/InternalEditorUtility.cs#L25
// minus the other two
"UnitySource - TemplateRepo": {
"unity": [
"asmdef",
"asmref",
"uss",
"guiskin",
"mixer",
"uxml",
"prefs"
],
"image": [
"qti",
"tex",
"qif",
"jpw",
"jiff",
"mac",
"ai",
"jpx",
"apng",
"jpc",
"jtf",
"jp2",
"jpf",
"exif",
"jas",
"eps",
"j2c",
"cdr",
"tfw",
"wmf",
"j2k",
"qtif",
"icon",
"jng",
"jpe",
"omf",
"j",
"dib",
"ico"
],
"audio": [
"mid",
"au",
"aac",
"wave",
"midi",
"ra",
"wma",
"mpa",
"ram"
],
"video": [
"dat",
"dv",
"xvid",
"m4v",
"asx",
"m4e",
"m2t",
"mpe",
"vp8",
"mjp",
"m2ts",
"rm",
"rmvb",
"divx",
"mpv2",
"webm",
"movie",
"mlv",
"dvx",
"wmw",
"ogm",
"m2v",
"mp21",
"qt",
"m2l"
],
"3d": [
"wrz",
"3dx",
"3dv",
"vrl",
"lwo",
"3df",
"wrl",
"mesh",
"3dmf"
],
"fonts": [
"fon",
"fnt"
],
"scriptable-object": [
"particledoublecurvessigned",
"gradients",
"particlecurvessigned",
"particledoublecurves",
"curvesnormalized",
"particlecurves",
"colors",
"curves"
],
"other": [
"txt"
]
},
"UnitySource - GitForUnity": {
"unity": [
"asmdef",
"asmref",
"uss",
"uxml",
"prefs"
],
"code": [
"cginc",
"shader",
"cs"
],
"image": [
"qti",
"tex",
"exr",
"qif",
"jpw",
"jiff",
"mac",
"ai",
"jpx",
"apng",
"jpc",
"jtf",
"jp2",
"jpf",
"jpeg",
"exif",
"jas",
"eps",
"j2c",
"cdr",
"hdr",
"tfw",
"wmf",
"j2k",
"qtif",
"icon",
"jng",
"jpe",
"omf",
"j",
"dib",
"ico"
],
"audio": [
"mid",
"au",
"aac",
"wave",
"midi",
"ra",
"wma",
"mpa",
"ram"
],
"video": [
"dat",
"dv",
"xvid",
"m4v",
"asx",
"m4e",
"m2t",
"mpe",
"vp8",
"mjp",
"m2ts",
"rm",
"rmvb",
"divx",
"mpv2",
"webm",
"movie",
"mlv",
"dvx",
"ogv",
"wmw",
"ogm",
"m2v",
"mp21",
"qt",
"m2l"
],
"3d": [
"wrz",
"3dx",
"3dv",
"vrl",
"lws",
"3df",
"wrl",
"mesh",
"3dmf"
],
"fonts": [
"fon",
"otf",
"ttf",
"fnt"
],
"scriptable-object": [
"particledoublecurvessigned",
"gradients",
"particlecurvessigned",
"particledoublecurves",
"curvesnormalized",
"particlecurves",
"colors",
"curves"
],
"other": [
"txt"
]
},
// https://github.com/alexkaratarakis/gitattributes/blob/1a244a639484cf55209aeede8d7fe6cec4f52ea9/Unity.gitattributes
// minus the other two
"TemplateRepo - UnitySource": {
"unity": [
"physicMaterial2D",
"controller",
"physicsMaterial",
"physicsMaterial2D"
],
"unity-lfs": [
"cubemap",
"unitypackage"
],
"image": [
"iff",
"pict"
],
"audio": [
"s3m",
"it",
"mod",
"xm"
],
"video": [
"flv",
"wmv"
],
"3d": [
"ply",
"skp",
"lxo",
"dae",
"dxf",
"FBX",
"jas",
"collada",
"stl",
"ztl"
],
"build": [
"so",
"pdb"
],
"exec": [
"apk",
"exe"
],
"compressed": [
"bz2",
"7z",
"rar",
"gz",
"zip",
"tar"
],
"other": [
"reason",
"rns",
"pdf",
"a"
]
},
"TemplateRepo - GitForUnity": {
"unity": [
"physicMaterial2D",
"physicsMaterial"
],
"unity-lfs": [
"cubemap",
"unitypackage"
],
"code": [
"cginc",
"shader",
"cs"
],
"image": [
"exr",
"jpeg",
"hdr"
],
"video": [
"flv",
"ogv",
"wmv"
],
"3d": [
"ply",
"skp",
"lxo",
"dxf",
"FBX",
"jas",
"collada",
"lws",
"stl",
"ztl"
],
"fonts": [
"otf",
"ttf"
],
"build": [
"so"
],
"exec": [
"apk",
"exe"
],
"compressed": [
"bz2"
],
"other": [
"reason",
"pdf",
"rns",
"a"
]
},
// https://github.com/Unity-Technologies/Git-for-Unity/blob/a9a5ccde021cfec55ddf814c5233b5efc6ff02a6/src/com.unity.git.api/Api/Resources/.gitattributes
// minus the other two
"GitForUnity - UnitySource": {
"unity": [
"mask",
"playable",
"giparams",
"flare",
"terrainlayer",
"overrideController",
"brush",
"spriteatlas",
"physicsMaterial2D",
"controller",
"renderTexture",
"fontsettings",
"shadervariants"
],
"image": [
"iff",
"pict",
"dds",
"xcf"
],
"audio": [
"s3m",
"it",
"mod",
"xm"
],
"3d": [
"abc",
"lwo2",
"dfx",
"dae"
],
"build": [
"mdb",
"pdb"
],
"compressed": [
"gz",
"7z",
"rar",
"zip",
"tar"
]
},
"GitForUnity - TemplateRepo": {
"unity": [
"mask",
"playable",
"giparams",
"flare",
"terrainlayer",
"overrideController",
"guiskin",
"brush",
"mixer",
"spriteatlas",
"renderTexture",
"fontsettings",
"shadervariants"
],
"image": [
"dds",
"xcf"
],
"3d": [
"lwo",
"abc",
"lwo2",
"dfx"
],
"build": [
"mdb"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment