Navigation
API > API/Editor > API/Editor/UnrealEd
Public interface to SLevelViewport
| Name | IAssetViewport |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/IAssetViewport.h |
| Include Path | #include "IAssetViewport.h" |
Syntax
class IAssetViewport
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddOverlayWidget
(
TSharedRef< SWidget > OverlaidWidget, |
Adds a widget overlaid over the viewport | IAssetViewport.h | |
TSharedRef< const SWidget > AsWidget () |
Returns the SLevelViewport widget (const). | IAssetViewport.h | |
TSharedRef< SWidget > AsWidget () |
Returns the SLevelViewport widget. | IAssetViewport.h | |
void EndPlayInEditorSession() |
Ends a currently active play in editor session in this viewport | IAssetViewport.h | |
FViewport * GetActiveViewport() |
Gets the active viewport. | IAssetViewport.h | |
FEditorViewportClient & GetAssetViewportClient() |
IAssetViewport.h | ||
TSharedPtr< FSceneViewport > GetSharedActiveViewport() |
IAssetViewport.h | ||
TWeakPtr< class SViewport > GetViewportWidget () |
Returns the SViewport widget contained within the SLevelViewport. | IAssetViewport.h | |
bool HasPlayInEditorViewport() |
IAssetViewport.h | ||
bool IsImmersive() |
IAssetViewport.h | ||
bool IsInGameView() |
IAssetViewport.h | ||
void MakeImmersive
(
const bool bWantImmersive, |
Attempts to switch this viewport into immersive mode | IAssetViewport.h | |
void OnSimulateSessionFinished() |
Called by the editor when simulate mode with this viewport finishes | IAssetViewport.h | |
void OnSimulateSessionStarted() |
Called by the editor when simulate mode is started with this viewport | IAssetViewport.h | |
void RegisterGameViewportIfPIE() |
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 | IAssetViewport.h | |
void RemoveOverlayWidget
(
TSharedRef< SWidget > OverlaidWidget |
Removes a widget that was previously overlaid on to this viewport | IAssetViewport.h | |
void StartPlayInEditorSession
(
UGameViewportClient* PlayClient, |
Begins a play in editor session in this viewport. | IAssetViewport.h | |
void SwapViewportsForPlayInEditor() |
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 | IAssetViewport.h | |
void SwapViewportsForSimulateInEditor() |
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 | IAssetViewport.h | |
void ToggleGameView() |
Called when game view should be toggled | IAssetViewport.h |