private void RefreshMonoInProjectList() { _monoBehaviorsInProject.Clear(); var mbs = Resources.FindObjectsOfTypeAll(typeof(MonoBehaviour)) as MonoBehaviour[]; if (mbs == null) { return; } foreach (MonoBehaviour mb in mbs) { if (!string.IsNullOrEmpty(mb.gameObject.scene.name)) { continue; } if (IsUnityBehavior(mb)) { continue; } if (!_monoBehaviorsInProject.ContainsKey(mb.GetType())) { _monoBehaviorsInProject[mb.GetType()] = new ValueArray(); } ((ValueArray)_monoBehaviorsInProject[mb.GetType()]).Add(mb.gameObject); } _monoTypesReport = BuildMonoAssembliesList(); }
private void RefreshMonoInScenesList() { filter = ""; _monoBehaviorsInActiveScenes.Clear(); var mbs = Resources.FindObjectsOfTypeAll(typeof(MonoBehaviour)) as MonoBehaviour[]; if (mbs == null) { return; } foreach (MonoBehaviour mb in mbs) { if (string.IsNullOrEmpty(mb.gameObject.scene.name)) { continue; } if (IsUnityBehavior(mb)) { continue; } if (!_monoBehaviorsInActiveScenes.ContainsKey(mb.GetType())) { _monoBehaviorsInActiveScenes[mb.GetType()] = new ValueArray(); } ((ValueArray)_monoBehaviorsInActiveScenes[mb.GetType()]).Add(mb.gameObject); } }