Created
September 28, 2016 13:34
-
-
Save prehnRA/5302153e92d322fe5893af4db408dfb8 to your computer and use it in GitHub Desktop.
Unity editor script for running test every time code changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
[ExecuteInEditMode] | |
public class StatsTest : MonoBehaviour { | |
[UnityEditor.Callbacks.DidReloadScripts] | |
private static void OnScriptsReloaded() { | |
Statistics stats = new Statistics(); | |
stats.Run(); | |
stats.Log(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment