Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Kismet > UKismetSystemLibrary
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h |
Include | #include "Kismet/KismetSystemLibrary.h" |
Source | /Engine/Source/Runtime/Engine/Private/KismetSystemLibrary.cpp |
static void PrintString
&40;
const UObject &42; WorldContextObject,
const FString & InString,
bool bPrintToScreen,
bool bPrintToLog,
FLinearColor TextColor,
float Duration,
const FName Key
&41;
Remarks
Prints a string to the log, and optionally, to the screen If Print To Log is true, it will be visible in the Output Log window. Otherwise it will be logged only as 'Verbose', so it generally won't show up.
Parameters
Name | Description |
---|---|
InString | The string to log out |
bPrintToScreen | Whether or not to print the output to the screen |
bPrintToLog | Whether or not to print the output to the log |
bPrintToConsole | Whether or not to print the output to the console |
TextColor | The color of the text to display |
Duration | The display duration (if Print to Screen is True). Using negative number will result in loading the duration time from the config. |
Key | If a non-empty key is provided, the message will replace any existing on-screen messages with the same key. |