UKismetSystemLibrary::FlushDebugStrings
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Removes all debug strings previously drawn with DrawDebugString in the given world, including ones still within their Duration.
Caveats & Gotchas
- • Clears every debug string in the world, not just ones drawn by the calling object — calling it from unrelated code can wipe out other systems' debug text.
- • Compiled out entirely in Shipping and Test builds since the UFUNCTION is DevelopmentOnly.
Signature
static void FlushDebugStrings(const UObject* WorldContextObject) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| WorldContextObject | const UObject* | World context identifying which world's debug strings to clear. | — |
Return Type
void Example
Clear all debug text on state change C++
UKismetSystemLibrary::FlushDebugStrings(this); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?