Is there a way to show/hide (draw debug line) in BP?

I am using a “draw debug line” function to trace bullets.
So during the game all line tracers must be invisible, but at the end of the game or by pressing button i need all the debug lines to become visible, so i could see where the bullets went.


Plz help me out!

I think you need an IF statement in Blueprint for when you want the lines to disappear. Think of it like pseudocode, or fake code, and maybe you’l understand how to make your blueprint better.l

The whole point of the debug lines are to help you debug… so they will appear when you execute it. in CPP you can tweak a value to have it persist or not. However that’s not exposed to BPs for some reason. Which is strange since that functionality is in LineTraces.