Line trace: how to get hit material?

This does not seem to work when a mesh is composed of only one component, but has multiple rendering materials—at least for grabbing the one specific hit material.