From 2ef75046cca5fd1184c32d27da39618edce5cce0 Mon Sep 17 00:00:00 2001 From: sebas77 Date: Mon, 23 Jan 2017 12:28:52 +0000 Subject: [PATCH] revert some profiler code --- ECS/EnginesRoot.cs | 9 ++------- .../Editor/EngineProfiler/ProfilerEditorLayout.cs.meta | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/ECS/EnginesRoot.cs b/ECS/EnginesRoot.cs index dfec6e4..6d43243 100644 --- a/ECS/EnginesRoot.cs +++ b/ECS/EnginesRoot.cs @@ -46,13 +46,8 @@ namespace Svelto.ECS go.AddComponent().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(); - UnityEngine.Object.DontDestroyOnLoad(debugEngineObject); - } + GameObject debugEngineObject = new GameObject("Engine Debugger"); + debugEngineObject.gameObject.AddComponent(); #endif } diff --git a/ECS/Profiler/Editor/EngineProfiler/ProfilerEditorLayout.cs.meta b/ECS/Profiler/Editor/EngineProfiler/ProfilerEditorLayout.cs.meta index 489305b..77f5e52 100644 --- a/ECS/Profiler/Editor/EngineProfiler/ProfilerEditorLayout.cs.meta +++ b/ECS/Profiler/Editor/EngineProfiler/ProfilerEditorLayout.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3e961e5c8cc40064fa25092d835d1a80 +guid: 1c9cf391ddfdd92429ce90eeb73a936a timeCreated: 1462527509 licenseType: Pro MonoImporter: