Language:
Discover
By Skill Level
By Category

AHUD::AddDebugText

Choose your OS:

Syntax

void AddDebugText
(
    const FString & DebugText,
    AActor * SrcActor,
    float Duration,
    FVector Offset,
    FVector DesiredOffset,
    FColor TextColor,
    bool bSkipOverwriteCheck,
    bool bAbsoluteLocation,
    bool bKeepAttachedToActor,
    UFont * InFont,
    float FontScale,
    bool bDrawShadow
)

Remarks

Add debug text for a specific actor to be displayed via DrawDebugTextList() . If the debug text is invalid then it will attempt to remove any previous entries via RemoveDebugText() .

Parameters

Parameter

Description

DebugText

Text to draw

SrcActor

Actor to which this relates

Duration

Duration to display the string

Offset

Initial offset to render text

DesiredOffset

Desired offset to render text - the text will move to this location over the given duration

TextColor

Color of text to render

bSkipOverwriteCheck

skips the check to see if there is already debug text for the given actor

bAbsoluteLocation

use an absolute world location

bKeepAttachedToActor

if this is true the text will follow the actor, otherwise it will be drawn at the location when the call was made

InFont

font to use

FontScale

scale

bDrawShadow

Draw shadow on this string

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/HUD.h