Navigation
API > API/Plugins > API/Plugins/DrawDebugLibrary
This buffers debug drawing calls, which can later be dispatched to draw on a canvas using either the bound delegate or via manual flushing
| Name | FDebugDrawerCanvasBuffer |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/DrawDebugLibrary/Source/DrawDebugLibrary/Public/DrawDebugLibrary.h |
| Include Path | #include "DrawDebugLibrary.h" |
Syntax
struct FDebugDrawerCanvasBuffer
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FDebugDrawerCanvasBuffer() |
Destructor will un-bind the delegate if it is still bound | DrawDebugLibrary.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Colors | TArray< FLinearColor > | Color of each buffered call | DrawDebugLibrary.h | |
| Delegate | FDelegateHandle | Delegate used to draw to a canvas somewhere | DrawDebugLibrary.h | |
| LineSegments | TArray< TPair< FVector, FVector > > | Array of line segment data | DrawDebugLibrary.h | |
| Points | TArray< FVector > | Array of point data | DrawDebugLibrary.h | |
| PrimitiveNums | TArray< int32 > | Number of primitives to draw for each buffered call | DrawDebugLibrary.h | |
| PrimitiveTypes | TArray< uint8 > | Buffered primitive types. 0 - points, 1 - lines, 2 - text | DrawDebugLibrary.h | |
| Scale | float | Scale to draw to the screen | DrawDebugLibrary.h | |
| Texts | TArray< TPair< FVector2D, FText > > | Array of text data including draw location | DrawDebugLibrary.h | |
| TextSettings | TArray< FDrawDebugCanvasTextSettings > | Array of text setting data | DrawDebugLibrary.h | |
| Thicknesses | TArray< float > | Thickness of each buffered call | DrawDebugLibrary.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Flush
(
FCanvas* Canvas |
Flushes the buffer and draws to the canvas | DrawDebugLibrary.h |