Skip to content

Instantly share code, notes, and snippets.

@dcariola
dcariola / .gitattributes
Created January 20, 2018 17:58 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@dcariola
dcariola / XCodePostProcess.cs
Created November 25, 2012 18:50
A small cs static class for Unity3D postprocess on iOS and OSX build target. It runs through all the projmods files in your asses folder and simply apply them to the newly created xcode project. To be used with XCode Project editor (https://github.com/dca
using UnityEditor;
public static class XCodePostProcess
{
[PostProcessBuild]
public static void OnPostProcessBuild( BuildTarget target, string path )
{
// Create a new project object from build target
XCodeEditor.XCProject project = new XCodeEditor.XCProject( targetPath );