|
12345678910111213141516171819202122 |
- using UnityEditor;
-
- //This profiler is based on the Entitas Visual Debugging tool
- //https://github.com/sschmid/Entitas-CSharp
-
- namespace Svelto.ECS.Profiler
- {
- internal class EngineProfilerMenuItem
- {
- [MenuItem("Engines/Enable Profiler")]
- public static void EnableProfiler()
- {
- PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Standalone, "ENGINE_PROFILER_ENABLED");
- }
-
- [MenuItem("Engines/Disable Profiler")]
- public static void DisableProfiler()
- {
- PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Standalone, "");
- }
- }
- }
|