Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pointcache/e67121a3f2ae47ad1b9d08d99a3ad8f9 to your computer and use it in GitHub Desktop.
Save pointcache/e67121a3f2ae47ad1b9d08d99a3ad8f9 to your computer and use it in GitHub Desktop.
using UnityEditor;
// Quickly recompile the project.
// Use only on empty project as it will erase your define symbols.
public static class Tool
{
static int count = 0;
[MenuItem("Tools/Reload _r")]
public static void Reload()
{
count = System.Convert.ToInt32(PlayerSettings.GetScriptingDefineSymbolsForGroup(BuildTargetGroup.Standalone));
PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Standalone, (++count).ToString());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment