UnityEditor.GUIViewDebuggerWindow.FindInstructionUnderPoint C# (CSharp) Method

FindInstructionUnderPoint() private method

private FindInstructionUnderPoint ( Vector2 point ) : int
point Vector2
return int
        private int FindInstructionUnderPoint(Vector2 point)
        {
            int instructionCount = GUIViewDebuggerHelper.GetInstructionCount();
            for (int i = 0; i < instructionCount; i++)
            {
                if (GUIViewDebuggerHelper.GetRectFromInstruction(i).Contains(point))
                {
                    return i;
                }
            }
            return -1;
        }