示例#1
0
        private void UpdateAnimatedFoldout()
        {
            double deltaTime = EditorApplication.timeSinceStartup - lastScrollUpdate;

            animationTime = Math.Min(1.0f, animationTime + (float)deltaTime);
            m_Window.Repaint();
            if (animationTime == 1.0f)
            {
                EditorApplication.update -= UpdateAnimatedFoldout;
            }
        }
示例#2
0
        protected void RowClicked(Event evt, MemoryElement memoryElement)
        {
            m_MemorySelection.SetSelection(memoryElement);
            GUIUtility.keyboardControl = m_ControlID;

            if (evt.clickCount == 2 && memoryElement.memoryInfo != null && memoryElement.memoryInfo.instanceId != 0)
            {
                Selection.instanceIDs      = new int[0];
                Selection.activeInstanceID = memoryElement.memoryInfo.instanceId;
            }
            evt.Use();
            if (memoryElement.memoryInfo != null)
            {
                EditorGUIUtility.PingObject(memoryElement.memoryInfo.instanceId);
            }

            if (m_DetailView != null)
            {
                m_DetailView.SetRoot(memoryElement.memoryInfo == null ? null : new MemoryElement(memoryElement.memoryInfo, false));
            }

            m_ProfilerWindow.Repaint();
        }