Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCharacterMovementComponent
Description
Draw important variables on canvas. Character will call DisplayDebug() on the current ViewTarget when the ShowDebug exec is used
| Name | DisplayDebug |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h |
| Include Path | #include "GameFramework/CharacterMovementComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp |
virtual void DisplayDebug
(
class UCanvas * Canvas,
const FDebugDisplayInfo & DebugDisplay,
float & YL,
float & YPos
)
Parameters
| Name | Remarks |
|---|---|
| Canvas | Canvas to draw on |
| DebugDisplay | Contains information about what debug data to display |
| YL | Height of the current font |
| YPos | Y position on Canvas. YPos += YL, gives position to draw text for next debug line. |