Navigation
API > API/Editor > API/Editor/UnrealEd
A level viewport toolbar widget that is placed in a viewport
| Name | SViewportToolBar |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/SViewportToolBar.h |
| Include Path | #include "SViewportToolBar.h" |
Syntax
class SViewportToolBar : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SViewportToolBar
- FSlateControlledConstruction → SWidget → SCompoundWidget → SViewportToolBar
Derived Classes
- SCommonEditorViewportToolbarBase
- SMetaHumanEditorViewportToolBar
- STransformViewportToolBar
- SWorldPartitionEditorGrid2D::SToolBar
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OpenedMenu | TWeakPtr< SMenuAnchor > | The pulldown menu that is open if any | SViewportToolBar.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
SViewportToolBar.h | ||
TWeakPtr< SMenuAnchor > GetOpenMenu() |
SViewportToolBar.h | ||
virtual bool IsViewModeSupported
(
EViewModeIndex ViewModeIndex |
SViewportToolBar.h | ||
void SetOpenMenu
(
TSharedPtr< SMenuAnchor >& NewMenu |
Sets the open menu to a new menu and closes any currently opened one | SViewportToolBar.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FText GetCameraMenuLabelFromViewportType
(
const ELevelViewportType ViewportType |
Returns the label for the "Camera" tool bar menu based on based viewport type | SViewportToolBar.h | |
virtual const FSlateBrush * GetCameraMenuLabelIconFromViewportType
(
const ELevelViewportType ViewportType |
Returns the label icon for the "Camera" tool bar menu, which changes depending on the viewport type | SViewportToolBar.h |