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.

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
(
    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

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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback