Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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