public void CleanupEventCollector() { EditorApplication.isPlaying = true; DiagnosticEventCollector.FindOrCreateGlobalInstance(); EditorApplication.isPlaying = false; Assert.AreEqual(0, CountResourcesByName("EventCollector")); }
/// <summary> /// This class is responsible for passing events from the resource manager to the event collector, /// </summary> /// <param name="resourceManager"></param> public ResourceManagerDiagnostics(ResourceManager resourceManager) { resourceManager.RegisterDiagnosticCallback(OnResourceManagerDiagnosticEvent); m_eventCollector = DiagnosticEventCollector.FindOrCreateGlobalInstance(); m_ResourceManager = resourceManager; }