Skip to content

Instantly share code, notes, and snippets.

View elmernocon's full-sized avatar
💻

Elmer Nocon elmernocon

💻
View GitHub Profile
@elmernocon
elmernocon / .gitattributes
Created March 31, 2021 11:40
Unity .gitattributes file
# Text
*.bat text
*.c text
*.cginc text
*.cpp text
*.cs text diff=csharp
*.h text
*.inc text
*.info text
@elmernocon
elmernocon / csc.rsp
Created August 13, 2020 08:39
This file contains command-line options that the C# command line compiler (CSC) will process as part of every compilation.
-nowarn:0168 #variable_declared_but_not_used
-nowarn:0219 #variable_assigned_but_not_used
-nowarn:0414 #private_field_assigned_but_not_used
-nowarn:0649 #field_is_never_assigned_to
@elmernocon
elmernocon / .gitconfig
Created July 25, 2020 02:39
Unity .gitconfig file
[merge]
tool = unityyamlmerge
[mergetool "unityyamlmerge"]
# Change this path locally according to https://docs.unity3d.com/Manual/SmartMerge.html
cmd = '<path to UnityYAMLMerge>' merge -p "$BASE" "$REMOTE" "$LOCAL" "$MERGED"
trustExitCode = false
@elmernocon
elmernocon / .gitattributes
Last active March 31, 2021 11:39
Unity .gitattributes file (LFS)
# Text
*.bat text
*.c text
*.cginc text
*.cpp text
*.cs text diff=csharp
*.h text
*.inc text
*.info text
@elmernocon
elmernocon / BuildCommand.cs
Last active August 25, 2021 11:23
A helper class for building a Unity project through the command-line.
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
#if UNITY_2018 || UNITY_2017
using UnityEditor.Build.Reporting;
#else