I echo this question. It looks like GetHitResultUnderCursor has been deprecated, but the …ByChannel function’s first argument is ETraceTypeQuery. The doc for that enum just lists by the queries by number (ETraceTypeQuery | Unreal Engine Documentation).
What does ETraceTypeQuery do?