UKismetSystemLibrary::PrintText

Prints text to the log, and optionally, to the screen If Print To Log is true, it will be visible in the Output Log window.

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 PrintText
(
    UObject * WorldContextObject,
    const FText InText,
    bool bPrintToScreen,
    bool bPrintToLog,
    FLinearColor TextColor,
    float Duration
)

Remarks

Prints text 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

InText

The text 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

Whether or not to print the output to the console

Duration

The display duration (if Print to Screen is True). Using negative number will result in loading the duration time from the config.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss