git reset --hard HEAD~1
git tag -d mytag
git push origin :refs/tags/mytag
| using UnityEngine; | |
| using System.Collections; | |
| using UnityEditor; | |
| [CustomEditor (typeof(TriggerContainer))] | |
| public class TriggerContainerEditor : Editor | |
| { | |
| private SerializedObject obj; |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| public class FileUtility { | |
| /// <summary> | |
| /// Determine whether a given path is a directory. | |
| /// </summary> |
| // https://frarees.github.io/default-gist-license | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using Microsoft.CSharp; | |
| using System.CodeDom.Compiler; |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
| /// @creator: Slipp Douglas Thompson | |
| /// @license: Public Domain per The Unlicense. See <http://unlicense.org/>. | |
| /// @purpose: Genericized Unity3D SerializedProperty value access. | |
| /// @why: Because this functionality should be built-into Unity. | |
| /// @usage: Use as you would a native SerializedProperty method; | |
| /// e.g. `Debug.Log(mySerializedProperty.Value<Color>());` | |
| /// @intended project path: Assets/Plugins/Editor/UnityEditor Extensions/SerializedPropertyValueExtension.cs | |
| /// @interwebsouce: https://gist.github.com/capnslipp/8516384 | |
| using System; |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using UnityEngine; | |
| using Object = UnityEngine.Object; | |
| using UnityEditor; | |
| namespace Swing.Editor | |
| { |
| function command_exists { | |
| #this should be a very portable way of checking if something is on the path | |
| #usage: "if command_exists foo; then echo it exists; fi" | |
| type "$1" &> /dev/null | |
| } |
| // http://garry.tv/2014/04/23/unity-batchmode-console/ | |
| public class ServerConsole : MonoBehaviour | |
| { | |
| #if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN | |
| Windows.ConsoleWindow console = new Windows.ConsoleWindow(); | |
| Windows.ConsoleInput input = new Windows.ConsoleInput(); | |
| string strInput; | |
| # don't treat any of these as errors, warnings or info | |
| ok /setenv / | |
| # ignore TidyXML warnings | |
| ok /line [0-9]+ column [0-9]+ - Error:/ | |
| ok /line [0-9]+ column [0-9]+ - Warning:/ | |
| ok /[0-9]+ warning.+ error.+ found!/ | |
| # ignore weird warnings about build variables in Info.plist: | |
| # e.g. "warning: ignoring operator ':rfc1034Identifier' on 'RSWebClientCore' for macro 'PRODUCT_NAME'" |