Browse Source

revert some profiler code

tags/Rel1
sebas77 7 years ago
parent
commit
2ef75046cc
2 changed files with 3 additions and 8 deletions
  1. +2
    -7
      ECS/EnginesRoot.cs
  2. +1
    -1
      ECS/Profiler/Editor/EngineProfiler/ProfilerEditorLayout.cs.meta

+ 2
- 7
ECS/EnginesRoot.cs View File

@@ -46,13 +46,8 @@ namespace Svelto.ECS
go.AddComponent<Scheduler>().OnTick += SubmitNodes;

#if ENGINE_PROFILER_ENABLED && UNITY_EDITOR
var debugEngineObject = GameObject.Find("Svelto.ECS.Profiler");
if (debugEngineObject == null)
{
debugEngineObject = new GameObject("Svelto.ECS.Profiler");
debugEngineObject.gameObject.AddComponent<EngineProfilerBehaviour>();
UnityEngine.Object.DontDestroyOnLoad(debugEngineObject);
}
GameObject debugEngineObject = new GameObject("Engine Debugger");
debugEngineObject.gameObject.AddComponent<EngineProfilerBehaviour>();
#endif
}



+ 1
- 1
ECS/Profiler/Editor/EngineProfiler/ProfilerEditorLayout.cs.meta View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3e961e5c8cc40064fa25092d835d1a80
guid: 1c9cf391ddfdd92429ce90eeb73a936a
timeCreated: 1462527509
licenseType: Pro
MonoImporter:


Loading…
Cancel
Save