UnityEditor.StyleDrawInspectView.OnSelectedInstructionChanged C# (CSharp) Method

OnSelectedInstructionChanged() private method

private OnSelectedInstructionChanged ( int index ) : void
index int
return void
        internal override void OnSelectedInstructionChanged(int index)
        {
            base.m_ListViewState.row = index;
            if (base.m_ListViewState.row >= 0)
            {
                if (this.m_Instruction == null)
                {
                    this.m_Instruction = new GUIInstruction();
                }
                if (this.m_CachedinstructionInfo == null)
                {
                    this.m_CachedinstructionInfo = new CachedInstructionInfo();
                }
                this.m_Instruction.rect = GUIViewDebuggerHelper.GetRectFromInstruction(base.m_ListViewState.row);
                this.m_Instruction.usedGUIStyle = GUIViewDebuggerHelper.GetStyleFromInstruction(base.m_ListViewState.row);
                this.m_Instruction.usedGUIContent = GUIViewDebuggerHelper.GetContentFromInstruction(base.m_ListViewState.row);
                this.m_Instruction.stackframes = GUIViewDebuggerHelper.GetManagedStackTrace(base.m_ListViewState.row);
                this.m_CachedinstructionInfo.styleContainer.inspectedStyle = this.m_Instruction.usedGUIStyle;
                this.m_CachedinstructionInfo.styleContainerSerializedObject = null;
                this.m_CachedinstructionInfo.styleSerializedProperty = null;
                this.GetSelectedStyleProperty(out this.m_CachedinstructionInfo.styleContainerSerializedObject, out this.m_CachedinstructionInfo.styleSerializedProperty);
                base.m_GuiViewDebuggerWindow.HighlightInstruction(base.m_GuiViewDebuggerWindow.m_Inspected, this.m_Instruction.rect, this.m_Instruction.usedGUIStyle);
            }
            else
            {
                this.m_Instruction = null;
                this.m_CachedinstructionInfo = null;
                if (base.m_GuiViewDebuggerWindow.InstructionOverlayWindow != null)
                {
                    base.m_GuiViewDebuggerWindow.InstructionOverlayWindow.Close();
                }
            }
        }