Skip to content

Instantly share code, notes, and snippets.

@zapdot
zapdot / StopPlayingOnRecompile.cs
Last active November 3, 2018 11:08
Stop Playing on Recompile
using UnityEditor;
[InitializeOnLoad]
public class StopPlayingOnRecompile
{
static StopPlayingOnRecompile()
{
EditorApplication.update = () =>
{
if (EditorApplication.isCompiling && EditorApplication.isPlaying)
using UnityEngine;
using System.Collections;
public class GoProxyProp<T>
{
public T property { get; set; }
public GoProxyProp( T startValue )
{
property = startValue;