Navigation
API > API/Editor > API/Editor/UnrealEd
Viewport toolbar containing transform, grid snapping, local to world and camera speed controls.
| Name | STransformViewportToolBar |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/STransformViewportToolbar.h |
| Include Path | #include "STransformViewportToolbar.h" |
Syntax
class STransformViewportToolBar : public SViewportToolBar
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SViewportToolBar → STransformViewportToolBar
- FSlateControlledConstruction → SWidget → SCompoundWidget → SViewportToolBar → STransformViewportToolBar
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CommandList | TSharedPtr< FUICommandList > | Command list | STransformViewportToolbar.h | |
| OnCamSpeedChanged | FOnCamSpeedChanged | Called when the camera speed is changed | STransformViewportToolbar.h | |
| OnCamSpeedScalarChanged | FOnCamSpeedScalarChanged | STransformViewportToolbar.h | ||
| SurfaceSnappingMenu | TSharedPtr< SEditorViewportToolbarMenu > | STransformViewportToolbar.h | ||
| Viewport | TWeakPtr< class SEditorViewport > | The editor viewport that we are in | STransformViewportToolbar.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
STransformViewportToolbar.h | ||
TSharedRef< SWidget > MakeTransformToolBar
(
const TSharedPtr< FExtender > InExtenders |
Static: Creates a widget for the main tool bar | STransformViewportToolbar.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool IsGridSizeChecked
(
int32 GridSizeIndex |
Grid snap is checked callbacks for the menu values | STransformViewportToolbar.h | |
static bool IsLayer2DSelected
(
int32 Later2DIndex |
STransformViewportToolbar.h | ||
static bool IsPreserveNonUniformScaleChecked() |
STransformViewportToolbar.h | ||
static bool IsRotationGridSizeChecked
(
int32 GridSizeIndex, |
Checks to see if the specified rotation grid angle is the current rotation grid angle | STransformViewportToolbar.h | |
static bool IsScaleGridSizeChecked
(
int32 GridSizeIndex |
Checks to see if the specified scale grid size is the current scale grid size | STransformViewportToolbar.h | |
static void SetGridSize
(
int32 InIndex |
Grid snap setting callbacksSets our grid size based on what the user selected in the UI | STransformViewportToolbar.h | |
static void SetLayer2D
(
int32 Layer2DIndex |
Sets the active 2d snap layer | STransformViewportToolbar.h | |
static void SetRotationGridSize
(
int32 InIndex, |
Sets the rotation grid size | STransformViewportToolbar.h | |
static void SetScaleGridSize
(
int32 InIndex |
Sets the scale grid size | STransformViewportToolbar.h | |
static void TogglePreserveNonUniformScale() |
Callbacks for preserving non-uniform scaling when snapping | STransformViewportToolbar.h |