From 7cb7bdba8bcea5fe862b948caa1eba22407d7bf6 Mon Sep 17 00:00:00 2001 From: LucaMefisto Date: Mon, 17 Jul 2017 09:58:06 +0100 Subject: [PATCH] moved class into Editor folder --- .../EventVisualizer/{ => Editor}/EventsVisualizer.cs | 10 +++++----- .../{ => Editor}/EventsVisualizer.cs.meta | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename Assets/EventVisualizer/{ => Editor}/EventsVisualizer.cs (95%) rename Assets/EventVisualizer/{ => Editor}/EventsVisualizer.cs.meta (100%) diff --git a/Assets/EventVisualizer/EventsVisualizer.cs b/Assets/EventVisualizer/Editor/EventsVisualizer.cs similarity index 95% rename from Assets/EventVisualizer/EventsVisualizer.cs rename to Assets/EventVisualizer/Editor/EventsVisualizer.cs index e5e4911..32c54cd 100644 --- a/Assets/EventVisualizer/EventsVisualizer.cs +++ b/Assets/EventVisualizer/Editor/EventsVisualizer.cs @@ -1,16 +1,16 @@ using System.Collections.Generic; -using UnityEditor; using UnityEngine; - +using UnityEditor; namespace EventVisualizer.Base { + public static class EventsFinder { public static List FindAllEvents() { List calls = new List(); - - foreach(GameObject go in GetAllObjectsInScene()) + + foreach (GameObject go in GetAllObjectsInScene()) { foreach (Component caller in go.GetComponents()) { @@ -58,7 +58,7 @@ public static List GetAllObjectsInScene(bool rootOnly = false) continue; } - if (pObject.hideFlags == HideFlags.NotEditable + if (pObject.hideFlags == HideFlags.NotEditable || pObject.hideFlags == HideFlags.HideAndDontSave) { continue; diff --git a/Assets/EventVisualizer/EventsVisualizer.cs.meta b/Assets/EventVisualizer/Editor/EventsVisualizer.cs.meta similarity index 100% rename from Assets/EventVisualizer/EventsVisualizer.cs.meta rename to Assets/EventVisualizer/Editor/EventsVisualizer.cs.meta