In blueprints, the GetOverlapInfos function can't really be used:
Static Mesh Component -> Get Overlap Infos -> Length -> Set Integer Variable
The Get Overlap Infos node errors out with the following error: "Error The direction of Return Value doesn't match the direction of parameter ReturnValue"
It has to do with the const reference return variable being interpreted as an input in blueprints, but that doesn't make sense as it is the return variable of the function, so it could never possibly be an input.
Alternatively, Static Mesh Component -> Get Overlap Infos -> Length -> Set Integer Variable
There's no existing public thread on this issue, so head over toAnswerHub just mention UE-28625 in the post.