Ejemplo n.º 1
0
        static void CleanupPostprocessors()
        {
            if (m_PostprocessStack != null)
            {
                m_PostprocessStack.Pop();
                m_ImportProcessors = m_PostprocessStack.Count > 0 ? m_PostprocessStack.Peek() : null;
            }

            if (s_AnalyticsEventsStack.Count > 0)
            {
                var lastEvent = s_AnalyticsEventsStack.Pop();
                if (lastEvent.postProcessorCalls.Count > 0)
                {
                    EditorAnalytics.SendAssetPostprocessorsUsage(lastEvent);
                }
            }
        }
Ejemplo n.º 2
0
        static void CleanupPostprocessors()
        {
            if (m_PostprocessStack != null)
            {
                m_PostprocessStack.RemoveAt(m_PostprocessStack.Count - 1);
                if (m_PostprocessStack.Count != 0)
                {
                    PostprocessStack postStack = (PostprocessStack)m_PostprocessStack[m_PostprocessStack.Count - 1];
                    m_ImportProcessors = postStack.m_ImportProcessors;
                }
            }

            if (s_AnalyticsEventsStack.Peek().postProcessorCalls.Count != 0)
            {
                EditorAnalytics.SendAssetPostprocessorsUsage(s_AnalyticsEventsStack.Peek());
            }

            s_AnalyticsEventsStack.Pop();
        }