UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DrawDebugHelpers.h File Reference
#include "CoreMinimal.h"
#include "Engine/EngineTypes.h"
#include "EngineDefines.h"

Go to the source code of this file.

Macros

#define ENABLE_DRAW_DEBUG   UE_ENABLE_DEBUG_DRAWING
 

Functions

ENGINE_API void FlushPersistentDebugLines (const UWorld *InWorld)
 
ENGINE_API void DrawDebugLine (const UWorld *InWorld, FVector const &LineStart, FVector const &LineEnd, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebugPoint (const UWorld *InWorld, FVector const &Position, float Size, FColor const &PointColor, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0)
 
ENGINE_API void DrawDebugDirectionalArrow (const UWorld *InWorld, FVector const &LineStart, FVector const &LineEnd, float ArrowSize, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebugBox (const UWorld *InWorld, FVector const &Center, FVector const &Extent, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebugBox (const UWorld *InWorld, FVector const &Center, FVector const &Extent, const FQuat &Rotation, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebugCoordinateSystem (const UWorld *InWorld, FVector const &AxisLoc, FRotator const &AxisRot, float Scale, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebugCrosshairs (const UWorld *InWorld, FVector const &AxisLoc, FRotator const &AxisRot, float Scale, const FColor &Color=FColor::White, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0)
 
ENGINE_API void DrawDebugCircle (const UWorld *InWorld, const FMatrix &TransformMatrix, double Radius, int32 Segments, const FColor &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f, bool bDrawAxis=true)
 
ENGINE_API void DrawDebugCircle (const UWorld *InWorld, FVector Center, double Radius, int32 Segments, const FColor &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f, FVector YAxis=FVector(0.f, 1.f, 0.f), FVector ZAxis=FVector(0.f, 0.f, 1.f), bool bDrawAxis=true)
 
ENGINE_API void DrawDebugCircleArc (const UWorld *InWorld, const FVector &Center, float Radius, const FVector &Direction, float AngleWidth, int32 Segments, const FColor &Color, bool PersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebugCircleArc (const UWorld *InWorld, const FVector &Center, float Radius, const FQuat &Rotation, float AngleWidth, int32 Segments, const FColor &Color, bool PersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebug2DDonut (const UWorld *InWorld, const FMatrix &TransformMatrix, float InnerRadius, float OuterRadius, int32 Segments, const FColor &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebugSphere (const UWorld *InWorld, FVector const &Center, float Radius, int32 Segments, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebugCylinder (const UWorld *InWorld, FVector const &Start, FVector const &End, float Radius, int32 Segments, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebugCone (const UWorld *InWorld, FVector const &Origin, FVector const &Direction, float Length, float AngleWidth, float AngleHeight, int32 NumSides, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebugAltCone (const UWorld *InWorld, FVector const &Origin, FRotator const &Rotation, float Length, float AngleWidth, float AngleHeight, FColor const &DrawColor, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawDebugString (const UWorld *InWorld, FVector const &TextLocation, const FString &Text, class AActor *TestBaseActor=NULL, FColor const &TextColor=FColor::White, float Duration=-1.000000, bool bDrawShadow=false, float FontScale=1.f)
 
ENGINE_API void DrawDebugFrustum (const UWorld *InWorld, const FMatrix &FrustumToWorld, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawCircle (const UWorld *InWorld, const FVector &Base, const FVector &X, const FVector &Y, const FColor &Color, double Radius, int32 NumSides, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0)
 
ENGINE_API void DrawDebugCapsule (const UWorld *InWorld, FVector const &Center, float HalfHeight, float Radius, const FQuat &Rotation, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0)
 
ENGINE_API void DrawDebugCamera (const UWorld *InWorld, FVector const &Location, FRotator const &Rotation, float FOVDeg, float Scale=1.f, FColor const &Color=FColor::White, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0)
 
ENGINE_API void DrawCentripetalCatmullRomSpline (const UWorld *InWorld, TConstArrayView< FVector > Points, FColor const &Color, float Alpha=0.5f, int32 NumSamplesPerSegment=8, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void DrawCentripetalCatmullRomSpline (const UWorld *InWorld, TConstArrayView< FVector > Points, TConstArrayView< FColor > Colors, float Alpha=0.5f, int32 NumSamplesPerSegment=8, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
 
ENGINE_API void FlushDebugStrings (const UWorld *InWorld)
 
ENGINE_API void DrawDebugSolidBox (const UWorld *InWorld, FBox const &Box, FColor const &Color, const FTransform &Transform=FTransform::Identity, bool bPersistent=false, float LifeTime=-1.f, uint8 DepthPriority=0)
 
ENGINE_API void DrawDebugSolidBox (const UWorld *InWorld, FVector const &Center, FVector const &Extent, FColor const &Color, bool bPersistent=false, float LifeTime=-1.f, uint8 DepthPriority=0)
 
ENGINE_API void DrawDebugSolidBox (const UWorld *InWorld, FVector const &Center, FVector const &Extent, FQuat const &Rotation, FColor const &Color, bool bPersistent=false, float LifeTime=-1.f, uint8 DepthPriority=0)
 
ENGINE_API void DrawDebugMesh (const UWorld *InWorld, TArray< FVector > const &Verts, TArray< int32 > const &Indices, FColor const &Color, bool bPersistent=false, float LifeTime=-1.f, uint8 DepthPriority=0)
 
ENGINE_API void DrawDebugSolidPlane (const UWorld *InWorld, FPlane const &P, FVector const &Loc, float Size, FColor const &Color, bool bPersistent=false, float LifeTime=-1, uint8 DepthPriority=0)
 
ENGINE_API void DrawDebugSolidPlane (const UWorld *InWorld, FPlane const &P, FVector const &Loc, FVector2D const &Extents, FColor const &Color, bool bPersistent=false, float LifeTime=-1, uint8 DepthPriority=0)
 
ENGINE_API void DrawDebugFloatHistory (UWorld const &WorldRef, FDebugFloatHistory const &FloatHistory, FTransform const &DrawTransform, FVector2D const &DrawSize, FColor const &DrawColor, bool const &bPersistent=false, float const &LifeTime=-1.f, uint8 const &DepthPriority=0)
 
ENGINE_API void DrawDebugFloatHistory (UWorld const &WorldRef, FDebugFloatHistory const &FloatHistory, FVector const &DrawLocation, FVector2D const &DrawSize, FColor const &DrawColor, bool const &bPersistent=false, float const &LifeTime=-1.f, uint8 const &DepthPriority=0)
 
ENGINE_API void DrawDebugCanvas2DLine (UCanvas *Canvas, const FVector &Start, const FVector &End, const FLinearColor &LineColor)
 
ENGINE_API void DrawDebugCanvas2DLine (UCanvas *Canvas, const FVector2D &StartPosition, const FVector2D &EndPosition, const FLinearColor &LineColor, const float &LineThickness=1.f)
 
ENGINE_API void DrawDebugCanvas2DCircle (UCanvas *Canvas, const FVector2D &Center, float Radius, int32 NumSides, const FLinearColor &LineColor, const float &LineThickness=1.f)
 
ENGINE_API void DrawDebugCanvas2DBox (UCanvas *Canvas, const FBox2D &Box, const FLinearColor &LineColor, const float &LineThickness=1.f)
 
ENGINE_API void DrawDebugCanvasLine (UCanvas *Canvas, const FVector &Start, const FVector &End, const FLinearColor &LineColor)
 
ENGINE_API void DrawDebugCanvasCircle (UCanvas *Canvas, const FVector &Base, const FVector &X, const FVector &Y, FColor Color, float Radius, int32 NumSides)
 
ENGINE_API void DrawDebugCanvasHalfCircle (UCanvas *Canvas, const FVector &Base, const FVector &X, const FVector &Y, FColor Color, float Radius, int32 NumSides)
 
ENGINE_API void DrawDebugCanvasWireSphere (UCanvas *Canvas, const FVector &Base, FColor Color, float Radius, int32 NumSides)
 
ENGINE_API void DrawDebugCanvasWireCone (UCanvas *Canvas, const FTransform &Transform, float ConeRadius, float ConeAngle, int32 ConeSides, FColor Color)
 
ENGINE_API void DrawDebugCanvasWireBox (UCanvas *Canvas, const FMatrix &Transform, const FBox &Box, FColor Color)
 
ENGINE_API void DrawDebugCanvasCapsule (UCanvas *Canvas, const FMatrix &Transform, float HalfLength, float Radius, const FColor &LineColor)
 

Macro Definition Documentation

◆ ENABLE_DRAW_DEBUG

#define ENABLE_DRAW_DEBUG   UE_ENABLE_DEBUG_DRAWING

Function Documentation

◆ DrawCentripetalCatmullRomSpline() [1/2]

ENGINE_API void DrawCentripetalCatmullRomSpline ( const UWorld InWorld,
TConstArrayView< FVector Points,
FColor const &  Color,
float  Alpha = 0.5f,
int32  NumSamplesPerSegment = 8,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Draw a centripetal catmull rom spline. Alpha values between 0 and 1

◆ DrawCentripetalCatmullRomSpline() [2/2]

ENGINE_API void DrawCentripetalCatmullRomSpline ( const UWorld InWorld,
TConstArrayView< FVector Points,
TConstArrayView< FColor Colors,
float  Alpha = 0.5f,
int32  NumSamplesPerSegment = 8,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

◆ DrawCircle()

ENGINE_API void DrawCircle ( const UWorld InWorld,
const FVector Base,
const FVector X,
const FVector Y,
const FColor Color,
double  Radius,
int32  NumSides,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0 
)

Draw a circle using user define axis and radius

◆ DrawDebug2DDonut()

ENGINE_API void DrawDebug2DDonut ( const UWorld InWorld,
const FMatrix TransformMatrix,
float  InnerRadius,
float  OuterRadius,
int32  Segments,
const FColor Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Draw Debug 2D donut

◆ DrawDebugAltCone()

ENGINE_API void DrawDebugAltCone ( const UWorld InWorld,
FVector const &  Origin,
FRotator const &  Rotation,
float  Length,
float  AngleWidth,
float  AngleHeight,
FColor const &  DrawColor,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Used by gameplay when defining a cone by a vertical and horizontal dot products.

◆ DrawDebugBox() [1/2]

ENGINE_API void DrawDebugBox ( const UWorld InWorld,
FVector const &  Center,
FVector const &  Extent,
const FQuat Rotation,
FColor const &  Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Draw a debug box with rotation

◆ DrawDebugBox() [2/2]

ENGINE_API void DrawDebugBox ( const UWorld InWorld,
FVector const &  Center,
FVector const &  Extent,
FColor const &  Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Draw a debug box

◆ DrawDebugCamera()

ENGINE_API void DrawDebugCamera ( const UWorld InWorld,
FVector const &  Location,
FRotator const &  Rotation,
float  FOVDeg,
float  Scale = 1.f,
FColor const &  Color = FColor::White,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0 
)

Draw a debug camera shape. FOV is full angle in degrees.

◆ DrawDebugCanvas2DBox()

ENGINE_API void DrawDebugCanvas2DBox ( UCanvas Canvas,
const FBox2D Box,
const FLinearColor LineColor,
const float LineThickness = 1.f 
)

◆ DrawDebugCanvas2DCircle()

ENGINE_API void DrawDebugCanvas2DCircle ( UCanvas Canvas,
const FVector2D Center,
float  Radius,
int32  NumSides,
const FLinearColor LineColor,
const float LineThickness = 1.f 
)

◆ DrawDebugCanvas2DLine() [1/2]

ENGINE_API void DrawDebugCanvas2DLine ( UCanvas Canvas,
const FVector Start,
const FVector End,
const FLinearColor LineColor 
)

Draws a 2D line on a canvas

Parameters
CanvasThe Canvas to draw on
StartThe start of the line in screen space
EndThe end of the line in screen space
LineColorThe color to use for the line

◆ DrawDebugCanvas2DLine() [2/2]

ENGINE_API void DrawDebugCanvas2DLine ( UCanvas Canvas,
const FVector2D StartPosition,
const FVector2D EndPosition,
const FLinearColor LineColor,
const float LineThickness = 1.f 
)

◆ DrawDebugCanvasCapsule()

ENGINE_API void DrawDebugCanvasCapsule ( UCanvas Canvas,
const FMatrix Transform,
float  HalfLength,
float  Radius,
const FColor LineColor 
)

Draws a capsule using lines.

Parameters
CanvasThe Canvas to draw on.
TransformTransform to apply to the capsule.
HalfLengthDistance from the center of the capsule to the tip (including the cap)
RadiusRadius of the capsule.
ColorColor of the capsule.

◆ DrawDebugCanvasCircle()

ENGINE_API void DrawDebugCanvasCircle ( UCanvas Canvas,
const FVector Base,
const FVector X,
const FVector Y,
FColor  Color,
float  Radius,
int32  NumSides 
)

Draws a circle using lines.

Parameters
CanvasThe Canvas to draw on.
BaseCenter of the circle.
XX alignment axis to draw along.
YY alignment axis to draw along.
ColorColor of the circle.
RadiusRadius of the circle.
NumSidesNumbers of sides that the circle has.

◆ DrawDebugCanvasHalfCircle()

ENGINE_API void DrawDebugCanvasHalfCircle ( UCanvas Canvas,
const FVector Base,
const FVector X,
const FVector Y,
FColor  Color,
float  Radius,
int32  NumSides 
)

Draws a half circle using lines.

Parameters
CanvasThe Canvas to draw on.
BaseCenter of the circle.
XX alignment axis to draw along.
YY alignment axis to draw along.
ColorColor of the circle.
RadiusRadius of the circle.
NumSidesNumbers of sides that the circle has.

◆ DrawDebugCanvasLine()

ENGINE_API void DrawDebugCanvasLine ( UCanvas Canvas,
const FVector Start,
const FVector End,
const FLinearColor LineColor 
)

Draws a line on a canvas.

Parameters
CanvasThe Canvas to draw on.
StartThe start of the line in world space
EndThe end of the line in world space
LineColorThe color to use for the line

◆ DrawDebugCanvasWireBox()

ENGINE_API void DrawDebugCanvasWireBox ( UCanvas Canvas,
const FMatrix Transform,
const FBox Box,
FColor  Color 
)

Draws a box using lines.

Parameters
CanvasThe Canvas to draw on.
TransformTransform to apply to the capsule.
BoxThe box to be drawn.
ColorColor of the capsule.

◆ DrawDebugCanvasWireCone()

ENGINE_API void DrawDebugCanvasWireCone ( UCanvas Canvas,
const FTransform Transform,
float  ConeRadius,
float  ConeAngle,
int32  ConeSides,
FColor  Color 
)

Draws a wireframe cone

Parameters
CanvasCanvas to draw on
TransformGeneric transform to apply (ex. a local-to-world transform).
ConeRadiusRadius of the cone.
ConeAngleAngle of the cone.
ConeSidesNumbers of sides that the cone has.
ColorColor of the cone.

◆ DrawDebugCanvasWireSphere()

ENGINE_API void DrawDebugCanvasWireSphere ( UCanvas Canvas,
const FVector Base,
FColor  Color,
float  Radius,
int32  NumSides 
)

Draws a sphere using circles.

Parameters
CanvasThe Canvas to draw on.
BaseCenter of the sphere.
ColorColor of the sphere.
RadiusRadius of the sphere.
NumSidesNumbers of sides that the circle has.

◆ DrawDebugCapsule()

ENGINE_API void DrawDebugCapsule ( const UWorld InWorld,
FVector const &  Center,
float  HalfHeight,
float  Radius,
const FQuat Rotation,
FColor const &  Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0 
)

Draw a capsule using the LineBatcher

◆ DrawDebugCircle() [1/2]

ENGINE_API void DrawDebugCircle ( const UWorld InWorld,
const FMatrix TransformMatrix,
double  Radius,
int32  Segments,
const FColor Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f,
bool  bDrawAxis = true 
)

Draw Debug Circle

◆ DrawDebugCircle() [2/2]

ENGINE_API void DrawDebugCircle ( const UWorld InWorld,
FVector  Center,
double  Radius,
int32  Segments,
const FColor Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f,
FVector  YAxis = FVector(0.f, 1.f, 0.f),
FVector  ZAxis = FVector(0.f, 0.f, 1.f),
bool  bDrawAxis = true 
)

Draw Debug Circle

◆ DrawDebugCircleArc() [1/2]

ENGINE_API void DrawDebugCircleArc ( const UWorld InWorld,
const FVector Center,
float  Radius,
const FQuat Rotation,
float  AngleWidth,
int32  Segments,
const FColor Color,
bool  PersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

◆ DrawDebugCircleArc() [2/2]

ENGINE_API void DrawDebugCircleArc ( const UWorld InWorld,
const FVector Center,
float  Radius,
const FVector Direction,
float  AngleWidth,
int32  Segments,
const FColor Color,
bool  PersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Draw Debug Circle Arc

◆ DrawDebugCone()

ENGINE_API void DrawDebugCone ( const UWorld InWorld,
FVector const &  Origin,
FVector const &  Direction,
float  Length,
float  AngleWidth,
float  AngleHeight,
int32  NumSides,
FColor const &  Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Draw a debug cone. AngleWidth and AngleHeight are given in radians

◆ DrawDebugCoordinateSystem()

ENGINE_API void DrawDebugCoordinateSystem ( const UWorld InWorld,
FVector const &  AxisLoc,
FRotator const &  AxisRot,
float  Scale,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Draw Debug coordinate system

◆ DrawDebugCrosshairs()

ENGINE_API void DrawDebugCrosshairs ( const UWorld InWorld,
FVector const &  AxisLoc,
FRotator const &  AxisRot,
float  Scale,
const FColor Color = FColor::White,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0 
)

Draw Debug crosshair

◆ DrawDebugCylinder()

ENGINE_API void DrawDebugCylinder ( const UWorld InWorld,
FVector const &  Start,
FVector const &  End,
float  Radius,
int32  Segments,
FColor const &  Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Draw a debug cylinder

◆ DrawDebugDirectionalArrow()

ENGINE_API void DrawDebugDirectionalArrow ( const UWorld InWorld,
FVector const &  LineStart,
FVector const &  LineEnd,
float  ArrowSize,
FColor const &  Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Draw directional arrow

◆ DrawDebugFloatHistory() [1/2]

ENGINE_API void DrawDebugFloatHistory ( UWorld const &  WorldRef,
FDebugFloatHistory const &  FloatHistory,
FTransform const &  DrawTransform,
FVector2D const &  DrawSize,
FColor const &  DrawColor,
bool const &  bPersistent = false,
float const &  LifeTime = -1.f,
uint8 const &  DepthPriority = 0 
)

◆ DrawDebugFloatHistory() [2/2]

ENGINE_API void DrawDebugFloatHistory ( UWorld const &  WorldRef,
FDebugFloatHistory const &  FloatHistory,
FVector const &  DrawLocation,
FVector2D const &  DrawSize,
FColor const &  DrawColor,
bool const &  bPersistent = false,
float const &  LifeTime = -1.f,
uint8 const &  DepthPriority = 0 
)

◆ DrawDebugFrustum()

ENGINE_API void DrawDebugFrustum ( const UWorld InWorld,
const FMatrix FrustumToWorld,
FColor const &  Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

◆ DrawDebugLine()

ENGINE_API void DrawDebugLine ( const UWorld InWorld,
FVector const &  LineStart,
FVector const &  LineEnd,
FColor const &  Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Draw a debug line

◆ DrawDebugMesh()

ENGINE_API void DrawDebugMesh ( const UWorld InWorld,
TArray< FVector > const &  Verts,
TArray< int32 > const &  Indices,
FColor const &  Color,
bool  bPersistent = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0 
)

◆ DrawDebugPoint()

ENGINE_API void DrawDebugPoint ( const UWorld InWorld,
FVector const &  Position,
float  Size,
FColor const &  PointColor,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0 
)

Draw a debug point

◆ DrawDebugSolidBox() [1/3]

ENGINE_API void DrawDebugSolidBox ( const UWorld InWorld,
FBox const &  Box,
FColor const &  Color,
const FTransform Transform = FTransform::Identity,
bool  bPersistent = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0 
)

Draw a solid box. Various API's provided for convenience, including ones that use FBox as well as ones that prefer (Center, Extent). Draw a Debug box with optional transform.

◆ DrawDebugSolidBox() [2/3]

ENGINE_API void DrawDebugSolidBox ( const UWorld InWorld,
FVector const &  Center,
FVector const &  Extent,
FColor const &  Color,
bool  bPersistent = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0 
)

Draw a Debug box from (Center, Extent) with no rotation (axis-aligned)

◆ DrawDebugSolidBox() [3/3]

ENGINE_API void DrawDebugSolidBox ( const UWorld InWorld,
FVector const &  Center,
FVector const &  Extent,
FQuat const &  Rotation,
FColor const &  Color,
bool  bPersistent = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0 
)

Draw a Debug box from (Center, Extent) with specified Rotation

◆ DrawDebugSolidPlane() [1/2]

ENGINE_API void DrawDebugSolidPlane ( const UWorld InWorld,
FPlane const &  P,
FVector const &  Loc,
float  Size,
FColor const &  Color,
bool  bPersistent = false,
float  LifeTime = -1,
uint8  DepthPriority = 0 
)

◆ DrawDebugSolidPlane() [2/2]

ENGINE_API void DrawDebugSolidPlane ( const UWorld InWorld,
FPlane const &  P,
FVector const &  Loc,
FVector2D const &  Extents,
FColor const &  Color,
bool  bPersistent = false,
float  LifeTime = -1,
uint8  DepthPriority = 0 
)

◆ DrawDebugSphere()

ENGINE_API void DrawDebugSphere ( const UWorld InWorld,
FVector const &  Center,
float  Radius,
int32  Segments,
FColor const &  Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0,
float  Thickness = 0.f 
)

Draw a debug sphere

◆ DrawDebugString()

ENGINE_API void DrawDebugString ( const UWorld InWorld,
FVector const &  TextLocation,
const FString &  Text,
class AActor TestBaseActor = NULL,
FColor const &  TextColor = FColor::White,
float  Duration = -1.000000,
bool  bDrawShadow = false,
float  FontScale = 1.f 
)

◆ FlushDebugStrings()

ENGINE_API void FlushDebugStrings ( const UWorld InWorld)

◆ FlushPersistentDebugLines()

ENGINE_API void FlushPersistentDebugLines ( const UWorld InWorld)

Flush persistent lines