The Mastering Unreal Technology books are really good for learning how a great engine works. Learning how a great engine works doesn't necessary teach the nuts and bolts of how to create an engine. But, it will teach you the features of a great engine and how those features should work.
There are two versions of the books. An older book and a new set of three (1, 2, 3)