UnityEditor.MemoryTreeList.RowClicked C# (CSharp) Méthode

RowClicked() protected méthode

protected RowClicked ( Event evt, MemoryElement memoryElement ) : void
evt UnityEngine.Event
memoryElement MemoryElement
Résultat void
        protected void RowClicked(Event evt, MemoryElement memoryElement)
        {
            this.m_MemorySelection.SetSelection(memoryElement);
            GUIUtility.keyboardControl = this.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 (this.m_DetailView != null)
            {
                this.m_DetailView.SetRoot((memoryElement.memoryInfo != null) ? new MemoryElement(memoryElement.memoryInfo, false) : null);
            }
            this.m_EditorWindow.Repaint();
        }