AHUD::AddDebugText

Add debug text for a specific actor to be displayed via [DrawDebugTextList()](API\Runtime\Engine\GameFramework\AHUD\DrawDebugTextList).

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/HUD.h

Include

#include "GameFramework/HUD.h"

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

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