UKismetSystemLibrary::PrintWarning
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Prints a warning string to both the log and the screen. It exists to let compiled Blueprint graphs flag that a node was misused at runtime, rather than for general-purpose game logging.
Caveats & Gotchas
- • Marked BlueprintInternalUseOnly — it backs compiler-generated 'you misused this node' warnings and is not exposed as a callable node in the Blueprint palette.
- • The engine source explicitly warns not to change this function's signature without fixing up every K2 node that emits calls to it, since those calls are generated by the compiler rather than placed by hand.
Signature
static void PrintWarning(const FString& InString) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InString | const FString& | The warning text to log and print. | — |
Return Type
void Example
Compiler-emitted misuse warning C++
UKismetSystemLibrary::PrintWarning(TEXT("Attempted to call a function on an invalid object reference.")); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?