Navigation
Unreal Engine C++ API Reference > Editor > LevelEditor
Inheritance Hierarchy
- SAssetEditorViewport
- IAssetViewport
- SLevelViewport
References
Module | LevelEditor |
Header | /Engine/Source/Editor/LevelEditor/Public/SLevelViewport.h |
Include | #include "SLevelViewport.h" |
Syntax
class SLevelViewport :
public SAssetEditorViewport,
public IAssetViewport
Remarks
Encapsulates an SViewport and an SLevelViewportToolBar
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | CanGetCameraInformationFromActor
(
AActor* Actor |
|
![]() ![]() |
bool | ||
![]() |
void | Construct
(
const FArguments& InArgs, |
Constructs the viewport widget |
![]() |
void | ConstructLevelEditorViewportClient
(
FLevelEditorViewportInstanceSettings& ViewportInstanceSettings |
Constructs the level editor viewport client |
![]() |
void | Constructs the widgets for the viewport overlay | |
![]() ![]() |
TSharedRef< class ISceneOutlinerColumn > | CreateActorLockSceneOutlinerColumn
(
ISceneOutliner& SceneOutliner |
|
![]() ![]() |
void | ||
![]() ![]() |
float | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | GetCameraInformationFromActor
(
AActor* Actor, |
|
![]() ![]() |
EVisibility | Called to get the visibility of the viewport's 'Restore from Immersive' button. | |
![]() ![]() |
const TSharedPtr< FUICommandList > & | ||
![]() ![]() |
FName | GetConfigKey () |
Returns the config key associated with this viewport. |
![]() ![]() |
FMargin | ||
![]() ![]() |
FText | Called to get the screen percentage preview text | |
![]() ![]() |
EVisibility | ||
![]() ![]() |
FString | ||
![]() ![]() |
EVisibility | Get the visibility for items considered to be part of the 'full' viewport toolbar | |
![]() ![]() |
const FLevelEditorViewportClient & | ||
![]() |
FLevelEditorViewportClient & | ||
![]() ![]() |
EVisibility | Called to get the visibility of the viewport's maximize/minimize toggle button. | |
![]() ![]() |
TWeakPtr< ILevelEditor > | Get the parent level editor for this viewport | |
![]() ![]() |
FText | GetSelectedActorsCurrentLevelText
(
bool bDrawOnlyLabel |
Called to get the text for the level the currently selected actor or actors are in. |
![]() ![]() ![]() |
EVisibility | ||
![]() ![]() |
EVisibility | Get the visibility for viewport toolbar | |
![]() ![]() ![]() |
EVisibility | Called to get the visibility of the level viewport toolbar | |
![]() ![]() ![]() |
EVisibility | ||
![]() ![]() |
bool | IsActorAlwaysPreview
(
TWeakObjectPtr< AActor > Actor |
For the specified actor, See if we're forcing a preview |
![]() ![]() ![]() |
bool | ||
![]() ![]() |
bool | IsActorLocked
(
const TWeakObjectPtr< AActor > Actor |
|
![]() |
bool | IsActorPreviewDetached
(
TWeakObjectPtr< AActor > PreviewActor |
See if the specified actor's ActorPreview is detached from actor |
![]() |
bool | IsActorPreviewPinned
(
TWeakObjectPtr< AActor > PreviewActor |
See if the specified actor's ActorPreview is pinned or not |
![]() ![]() |
bool | ||
![]() ![]() |
bool | IsDeviceProfileStringSet
(
FString ProfileName |
|
![]() ![]() |
bool | IsFoliageTypeVisible
(
TWeakObjectPtr< class UFoliageType > FoliageType |
Checks if a foliage type is visible in this viewport |
![]() ![]() |
bool | ||
![]() ![]() |
bool | IsLayerVisible
(
FName LayerName |
Checks if a layer is visible in this viewportCalled to determine if a layer is visible. |
![]() ![]() |
bool | Check whether locked camera view is enabled | |
![]() ![]() |
bool | IsMaximized () |
|
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() |
void | LockActorInternal
(
AActor* NewActorToLock |
|
![]() |
void | OnActorLockToggleFromMenu
(
AActor* Actor |
Called to lock/unlock the actor from the viewport's context menu |
![]() |
void | OnActorSelectionChanged
(
const TArray< UObject* >& NewSelection, |
Called on all viewports, when actor selection changes. |
![]() |
void | Called to clear all bookmarks | |
![]() |
void | OnClearBookmark
(
int32 BookmarkIndex |
Called to clear a bookmark |
![]() |
void | Called to Compact Bookmarks. | |
![]() |
void | OnElementSelectionChanged
(
const UTypedElementSelectionSet* SelectionSet, |
Called on all viewports, when element selection changes. |
![]() |
void | Actions to perform whenever the viewports floating buttons are pressed | |
![]() |
void | OnJumpToBookmark
(
int32 BookmarkIndex |
Called to jump to a bookmark |
![]() |
void | Called when Preview Selected Cameras preference is changed. | |
![]() |
void | OnSetBookmark
(
int32 BookmarkIndex |
Called to set a bookmark |
![]() |
FReply | Called when the maximize command is executed | |
![]() |
void | RemoveAllPreviews
(
const bool bRemoveFromDesktopViewport |
Unpin and close all actor preview windows |
![]() ![]() |
void | SaveConfig
(
const FString& ConfigName |
Saves this viewport's config to ULevelEditorViewportSettings |
![]() |
void | SetActorAlwaysPreview
(
TWeakObjectPtr< AActor > PreviewActor, |
For the specified actor, toggle Pinned/Unpinned of it's ActorPreview |
![]() |
void | SetAllowsCinematicControl
(
bool bAllow |
Sets whether the viewport should allow cinematic control |
![]() |
void | SetDeviceProfileString
(
const FString& ProfileName |
Set the device profile name |
![]() |
void | Sets Slate keyboard focus to this viewport | |
![]() |
void | Toggles enabling the exact camera view when locking a viewport to a camera | |
![]() |
void | ToggleActorPreviewIsPanelDetached
(
TWeakObjectPtr< AActor > PreviewActor |
For the specified actor, toggle whether the panel is detached from it |
![]() |
void | ToggleActorPreviewIsPinned
(
TWeakObjectPtr< AActor > PreviewActor |
For the specified actor, toggle Pinned/Unpinned of it's ActorPreview |
![]() |
void | ToggleAllFoliageTypes
(
bool bVisible |
Toggles all foliage types visibility |
![]() |
void | ToggleShowFoliageType
(
TWeakObjectPtr< class UFoliageType > FoliageType |
Toggles foliage type visibility in this viewport |
![]() |
void | ToggleShowLayer
(
FName LayerName |
Toggles layer visibility in this viewport |
Overridden from SEditorViewport
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | BindCommands () |
|
![]() ![]() |
bool | ||
![]() ![]() ![]() |
EVisibility | Controls the visibility of the widget transform toolbar, if there is an associated toolbar | |
![]() ![]() ![]() |
UWorld * | GetWorld () |
Gets the world this viewport is for |
![]() ![]() |
void | ||
![]() ![]() ![]() |
bool | IsVisible () |
|
![]() ![]() |
TSharedRef< FEditorViewportClient > | SEditorViewport interface | |
![]() ![]() |
TSharedPtr< SWidget > | Implement this to add a viewport toolbar to the inside top of the viewport. | |
![]() ![]() |
void | ||
![]() ![]() |
void | ||
![]() ![]() |
void | SEditorViewport Interface | |
![]() ![]() ![]() |
EVisibility | ||
![]() ![]() ![]() |
const FSlateBrush * | ||
![]() ![]() ![]() |
FSlateColor | ||
![]() ![]() ![]() |
EVisibility | ||
![]() ![]() |
void | Changes the snapping grid size | |
![]() ![]() |
void | ||
![]() ![]() |
void | Called when the user wants to show the in-viewport context menu |
Overridden from IAssetViewport
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddOverlayWidget
(
TSharedRef< SWidget > OverlaidWidget |
Adds a widget overlaid over the viewport |
![]() ![]() ![]() |
TSharedRef< const SWidget > | AsWidget () |
Returns the SLevelViewport widget (const). |
![]() ![]() |
TSharedRef< SWidget > | AsWidget () |
Returns the SLevelViewport widget. |
![]() ![]() |
void | Ends a currently active play in editor session in this viewport | |
![]() ![]() |
FViewport * | Gets the active viewport. | |
![]() ![]() |
FEditorViewportClient & | ||
![]() ![]() ![]() |
TSharedPtr< FSceneViewport > | ||
![]() ![]() |
TWeakPtr< SViewport > | Returns the SViewport widget contained within the SLevelViewport. | |
![]() ![]() ![]() |
bool | ||
![]() ![]() ![]() |
bool | IsImmersive () |
|
![]() ![]() ![]() |
bool | IsInGameView () |
|
![]() ![]() |
void | MakeImmersive
(
const bool bWantImmersive, |
Attempts to switch this viewport into immersive mode |
![]() ![]() |
void | Called by the editor when simulate mode with this viewport finishes | |
![]() ![]() |
void | Called by the editor when simulate mode is started with this viewport | |
![]() ![]() |
void | Registers a game viewport with the Slate application so that specific messages can be routed directly to this level viewport if it is an active PIE viewport | |
![]() ![]() |
void | RemoveOverlayWidget
(
TSharedRef< SWidget > OverlaidWidget |
Removes a widget that was previously overlaid on to this viewport |
![]() ![]() |
void | StartPlayInEditorSession
(
UGameViewportClient* PlayClient, |
IAssetViewport Interface |
![]() ![]() |
void | Swaps the active SIE viewport client with the inactive PIE viewport (Swaps back to the game) It is not valid to call this unless we have an active simulate in editor session | |
![]() ![]() |
void | Swaps the active PIE viewport client with the level editor viewport client for simulate in editor It is not valid to call this unless we have an active play in editor session | |
![]() ![]() |
void | Called when game view should be toggled |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FArguments |
Constants
Name | Description |
---|---|
bInViewportMenuEnabled |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
EVisibility | GetCurrentLevelButtonVisibility not used anymore. | |
![]() ![]() ![]() |
EVisibility | GetCurrentLevelTextVisibility not used anymore. | |
![]() ![]() |
FName | Moved to internal handling by FViewportTabContent. See FViewportTabContent::BindCommonViewportCommands | |
![]() ![]() |
bool | IsViewportConfigurationSet
(
FName ConfigurationName |
Moved to internal handling by FViewportTabContent. See FViewportTabContent::BindCommonViewportCommands |
![]() |
bool | IsViewportTypeWithinLayoutEqual
(
FName InLayoutType |
Moved to internal handling by FViewportTabContent. See FViewportTabContent::BindCommonViewportCommands |
![]() |
void | OnSetViewportConfiguration
(
FName ConfigurationName |
Moved to internal handling by FViewportTabContent. See FViewportTabContent::BindCommonViewportCommands |
![]() |
void | SetViewportTypeWithinLayout
(
FName InLayoutType |
Moved to internal handling by FViewportTabContent. See FViewportTabContent::BindCommonViewportCommands |
![]() |
void | ToggleViewportTypeActivationWithinLayout
(
FName InLayoutType |
Moved to internal handling by FViewportTabContent. See FViewportTabContent::BindCommonViewportCommands |