I have successfully used both Trace Tags and DrawDebugLine to render debug lines, but I have an issue.
Is there a function for a C++ debug line that acts like the blueprint version (color features)? Trace Tags seem to only be white. I can’t find a way to adjust color for these. I can draw a debug line with a different color using DrawDebugLine, but it does not change color when a hit is detected. I can’t find any parameters that suggest this is possible.
In blueprint, LineTraceByChannel has “Trace Color” AND “Trace Hit Color”.
Could you please read the topic and question carefully before replying ? He is asking for Trace hit color not debug line color.
you can add another debug at the hit location with different color.
Of course, I will answer 3 years later, but in a better way.
I’m pretty sure he’s asking if there is a function like (BP) LineTraceByChannel, but for C++. Seems like he knows how to use it. So, here is how you use LineTraceByChannel in C++: