Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AHUD
Description
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().
| Name | AddDebugText |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/HUD.h |
| Include Path | #include "GameFramework/HUD.h" |
UFUNCTION (Reliable, Client, SealedEvent)
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
)
Parameters
| Name | Remarks |
|---|---|
| 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 |