FEditorViewportClient::DrawActorScreenSpaceBoundingBox

Draws a screen space bounding box around the specified actor

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/EditorViewportClient.h

Include

#include "EditorViewportClient.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorViewportClient.cpp

Syntax

void DrawActorScreenSpaceBoundingBox
(
    FCanvas * InCanvas,
    const FSceneView * InView,
    FViewport * InViewport,
    AActor * InActor,
    const FLinearColor & InColor,
    const bool bInDrawBracket,
    const FString & InLabelText
)

Remarks

Draws a screen space bounding box around the specified actor

Parameters

Parameter

Description

InCanvas

Canvas to draw on

InView

View to render

InViewport

Viewport we're rendering into

InActor

Actor to draw a bounding box for

InColor

Color of bounding box

bInDrawBracket

True to draw a bracket, otherwise a box will be rendered

bInLabelText

Optional label text to draw

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss