Beispiel #1
0
        public void Clear()
        {
            ClearDebugMode();

            if (m_ComponentBoard != null && m_Curves != null)
            {
                m_ComponentBoard.contentContainer.Remove(m_Curves);
            }
            m_ComponentBoard = null;
            m_Curves         = null;

            if (m_SystemInfosContainer != null)
            {
                m_SystemInfosContainer.Clear();
            }

            m_YaxisElts = null;

            if (m_DebugContainer != null)
            {
                m_DebugContainer.Clear();
            }


            m_SystemInfos          = null;
            m_DebugDrawingBox      = null;
            m_SystemInfosContainer = null;
            m_DebugContainer       = null;
        }
Beispiel #2
0
        public void Clear()
        {
            m_Graph.onRuntimeDataChanged -= UpdateDebugMode;

            if (m_ComponentBoard != null && m_Curves != null)
            {
                m_ComponentBoard.contentContainer.Remove(m_Curves);
            }
            m_ComponentBoard = null;
            m_Curves         = null;

            if (m_SystemInfosContainer != null)
            {
                m_SystemInfosContainer.Clear();
            }

            m_YaxisElts = null;

            if (m_DebugContainer != null)
            {
                m_DebugContainer.Clear();
            }


            m_SystemInfos          = null;
            m_DebugDrawingBox      = null;
            m_SystemInfosContainer = null;
            m_DebugContainer       = null;
        }
Beispiel #3
0
        void Alive()
        {
            // ui
            m_DebugButton.text = "Alive Particles Count Plot";
            m_Curves           = new CurveContent(this, (int)(10.0f / 0.016f), 16);
            m_ComponentBoard.contentContainer.Add(m_Curves);

            var Yaxis = SetYAxis("", "", "0");

            m_DebugDrawingBox = SetDebugDrawingBox();
            var settingsBox = SetSettingsBox();
            var plotArea    = SetPlotArea(m_DebugDrawingBox, Yaxis);
            var title       = SetSystemInfosTitle();

            m_SystemInfosContainer = SetSystemInfosContainer();

            m_DebugContainer.Add(settingsBox);
            m_DebugContainer.Add(plotArea);
            m_DebugContainer.Add(title);
            m_DebugContainer.Add(m_SystemInfosContainer);

            // recover debug data
            RegisterParticleSystems();
        }