UKismetSystemLibrary::PrintString

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.

Choose your operating system:

Windows

macOS

Linux

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

Syntax

static void PrintString
(
    const UObject * WorldContextObject,
    const FString & InString,
    bool bPrintToScreen,
    bool bPrintToLog,
    FLinearColor TextColor,
    float Duration
)

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

Parameter

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.