FEditorViewportTabContent

Represents the content in a viewport tab in an editor.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

UnrealEd

Header

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

Include

#include "EditorViewportTabContent.h"

Syntax

class FEditorViewportTabContent :
    public FViewportTabContent,
    public TSharedFromThis< FEditorViewportTabContent >

Remarks

Represents the content in a viewport tab in an editor. Each SDockTab holding viewports in an editor contains and owns one of these.

Functions

Name Description

Public function

TSharedPtr< ...

 

ConstructViewportLayoutByTypeName

(
    const FName& TypeName,
    bool bSwitchingLayouts
)

Public function Const

TSharedPtr< ...

 

CreateSlateViewport

(
    FName InTypeName,
    const FAssetEditorViewportConstruct...
)

Protected function Virtual

TSharedPtr< ...

 

FactoryViewportLayout

(
    bool bIsSwitchingLayouts
)

Public function Const

const AssetE...

 

FindViewportCreationFactory

(
    FName InTypeName
)

Attempt to find a viewport creation factory function in the set of registered factory functions.

Public function Const

const TShare...

 

GetActiveViewportLayout()

Public function

TSharedPtr< ...

 

GetFirstViewport()

Public function Const

const FStrin...

 

GetLayoutString()

Protected function Virtual Const

FName

 

GetLayoutTypeNameFromLayoutString()

Public function Virtual

void

 

Initialize

(
    AssetEditorViewportFactoryFunction ...,
    TSharedPtr< SDockTab > InParentTab,
    const FString& InLayoutString
)

Public function

void

 

RefreshViewportConfiguration()

Refresh the current layout. @note Does not save config

Public function Const

void

 

SaveConfig()

Save any configuration required to persist state for this viewport layout

Public function

void

 

UpdateViewportTabWidget()

Overridden from FViewportTabContent

Name Description

Public function Virtual

void

 

SetViewportConfiguration

(
    const FName& ConfigurationName
)

Sets the current layout by changing the contained layout object

Typedefs