Navigation
API > API/Runtime > API/Runtime/Engine
Widget wrapper that paints the debug canvas
| Name | SDebugCanvas |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Slate/DebugCanvas.h |
| Include Path | #include "Slate/DebugCanvas.h" |
Syntax
class SDebugCanvas : public SLeafWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SLeafWidget → SDebugCanvas
- FSlateControlledConstruction → SWidget → SLeafWidget → SDebugCanvas
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SDebugCanvas() |
Slate/DebugCanvas.h |
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SceneViewport | TAttribute< FSceneViewport * > | Viewport used for canvas rendering | Slate/DebugCanvas.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Slate/DebugCanvas.h | ||
int32 OnPaint
(
const FPaintArgs& Args, |
SWidget interface | Slate/DebugCanvas.h | |
void SetSceneViewport
(
FSceneViewport* InSceneViewport |
Sets the scene viewport that owns the canvas to draw | Slate/DebugCanvas.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector2D ComputeDesiredSize
(
float LayoutScaleMultiplier |
Slate/DebugCanvas.h |