How to get collision/trace channel by name in c++?

This didn’t answer my question. so I didnt accept it. But I just wanted to let everybody know that I have found a new workflow, which made answering this question obsolete. I am now use the GameSettings class from UE and load the necessary data from there wherever I need it.