Created
July 16, 2019 08:11
-
-
Save pointcache/e67121a3f2ae47ad1b9d08d99a3ad8f9 to your computer and use it in GitHub Desktop.
This file contains 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 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