how to get the actor‘s name or type which is hit by linetracebychannel?

You can drag a wire from the Out Hit of the Line Trace by Channel node and select “Break Hit Result” and it will give you all the data from the hit result. You can get what type of actor you hit from the Hit Actor output.