Erasing Printed Strings

Hi, So I currently have a rudimentary UI system set up where the blueprint script prints “Open” or “Closed” depending on whether on not a certain Boolean variable is set to open or closed at the time. My problem is that when the variable changes from open to closed it just prints “closed” on top of “open” and “open” stays on the screen. The variable does not change at a specific time because it is based on player input. When the change occurs multiple times in a short period the system becomes very confusing. I was wondering if anyone knows if there is a function node that I can call before every new string that will erase the previous string. Something like “ClearScreenMessages” or “DeletePrintedStrings”. Can anyone tell me how to do that?

Use drawDebugString or a UMG Widget. You can also Put your printString in Tick with a duration of 0, this will so the Trick (unchech printToLog or however it is called)

Hi! I appreciate you answering so quickly but neither of those functions are getting rid of the previous string before the new string prints. I need something that clears the string thats already on the screen. Is there anything that does that?

Maybe I didn’t understand you. With my solution Doing printString with duration of 0 in a Tick, leads to only one Line Printed. If you Stop the printString, it dissappeares in the next Tick/frame. Also If you Change the variable, it will not Print a new Line, but it would Change the already printed one. I would suggest use a UMG Widget Text and Bind that to the variable and toggle it’s visibility, it get’s ugly with printstrings quite quick :wink: I can give you a Sample on monday If Understand better what s your Goal with it

Try this?