Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mprivat on github.
  • I am mprivat (https://keybase.io/mprivat) on keybase.
  • I have a public key whose fingerprint is 7D87 F195 D454 ADFB 7AED 7F12 8797 41B2 00D2 C212

To claim this, I am signing this object:

@mprivat
mprivat / CompileTest.cs
Last active August 29, 2015 14:24
Unity editor script which compiles itself on command, including OS X when PATH doesn't include the target's folder.
using UnityEngine;
using UnityEditor;
using System.Diagnostics;
using Debug = UnityEngine.Debug;
using System.IO;
public class CompileTest : ScriptableObject
{
[MenuItem ("Assets/Run compiler test")]