SDebugCanvas

Widget wrapper that paints the debug canvas

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/DebugCanvas.h

Include

#include "Slate/DebugCanvas.h"

Syntax

class SDebugCanvas : public SLeafWidget

Remarks

Widget wrapper that paints the debug canvas

Constructors

Name Description

Public function

SDebugCanvas()

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Public function

void

 

SetSceneViewport

(
    FSceneViewport* InSceneViewpor...
)

Sets the scene viewport that owns the canvas to draw

Overridden from SWidget

Name Description

Public function Virtual Const

FVector2D

 

ComputeDesiredSize

(
    float
)

Overwritten from SWidget.

Public function Virtual Const

int32

 

OnPaint

(
    const FPaintArgs& Args,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle,
    bool bParentEnabled
)

SWidget interface

Classes

Name

Description

Public struct

FArguments