Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Toolkits
Inheritance Hierarchy
- IAssetEditorInstance
- FBaseToolkit
- TSharedFromThis
- FAssetEditorToolkit
- FBankEditorBase
- FBankEditor
- FBaseAssetToolkit
- FBaseCharacterFXEditorToolkit
- FExampleCharacterFXEditorToolkit
- FSmartObjectAssetToolkit
- FUVEditorToolkit
- FContextualAnimAssetEditorToolkit
- FDatabaseEditor
- FDataflowEditorToolkit
- FSimpleAssetEditor
- FWaveformEditor
- FWorkflowCentricApplication
- FDMXEditor
- FPersonaAssetEditorToolkit
- FIKRetargetEditor
- FIKRigEditorToolkit
- FMLDeformerEditorToolkit
- FPhysicsControlProfileEditorToolkit
- IAnimationEditor
- IOptimusEditor
- IPhysicsAssetEditor
- ISkeletalMeshEditor
- ISkeletonEditor
- IBehaviorTreeEditor
- FBehaviorTreeEditor
- IBlueprintEditor
- FBlueprintEditor
- FGameplayAbilitiesEditor
- FRigVMEditor
- IControlRigEditor
- FWidgetBlueprintEditor
- IAnimationBlueprintEditor
- IDisplayClusterConfiguratorBlueprintEditor
- IRenderGridEditor
- IMaterialEditor
- ICascade
- ICurveAssetEditor
- ICurveTableEditor
- ICustomizableObjectDebugger
- ICustomizableObjectInstanceEditor
- ICustomizableObjectEditor
- ICustomizableObjectPopulationClassEditor
- ICustomizableObjectPopulationEditor
- IDataTableEditor
- IEnvironmentQueryEditor
- IFontEditor
- IGroomCustomAssetEditorToolkit
- FGroomCustomAssetEditorToolkit
- ILevelSequenceEditorToolkit
- IMassEntityEditor
- IMassGameplayEditor
- IMassMovementEditor
- IMassNavigationEditor
- IMetasoundEditor
- ISoundClassEditor
- ISoundCueEditor
- ISoundSubmixEditor
- IStateTreeEditor
- IStaticMeshEditor
- IStringTableEditor
- IStructUtilsEditor
- ITextureEditorToolkit
- ITranslationEditor
- IUserDefinedEnumEditor
- IUserDefinedStructureEditor
- IUTBTabEditor
- FUTBTabEditor
- IZoneGraphEditor
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Toolkits/AssetEditorToolkit.h |
| Include | #include "Toolkits/AssetEditorToolkit.h" |
Syntax
class FAssetEditorToolkit :
public IAssetEditorInstance,
public FBaseToolkit,
public TSharedFromThis< FAssetEditorToolkit >
Remarks
Base class for toolkits that are used for asset editing (abstract)
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< FWorkspaceItem > | AssetEditorTabsCategory | The base category that tabs are registered to, allows for child classes to register to the same point. | |
| bool | bCheckDirtyOnAssetSave | Whether only dirty assets should be prompted about on save - otherwise all edited assets will be prompted to the user for save/check-out | |
| TSharedPtr< FEditorModeTools > | EditorModeManager | The editor mode manager | |
| TArray< TSharedPtr< FLayoutExtender > > | LayoutExtenders | Array of layout extenders | |
| TWeakPtr< IToolkitHost > | PreviousWorldCentricToolkitHost | For standalone asset editing tool-kits that were switched from world-centric mode on the fly, this stores the toolkit host (level editor) that hosted this toolkit last. | |
| TSharedPtr< FTabManager > | TabManager | Controls our internal layout |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor | |||
FAssetEditorToolkit
(
const FAssetEditorToolkit& |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor, so that we can clean up our app when destroyed |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddEditingObject
(
UObject* Object |
Adds an item to the Editing Objects list | |
| void | AddGraphEditorPinActionsToContextMenu
(
FToolMenuSection& InSection |
||
| void | AddMenuExtender
(
TSharedPtr< FExtender > Extender |
Adds or removes extenders to the default menu or the toolbar menu this asset editor | |
| void | AddToolbarExtender
(
TSharedPtr< FExtender > Extender |
||
| void | AddToolbarWidget
(
TSharedRef< SWidget > Widget |
Adds or removes widgets from the default toolbar in this asset editor | |
| void | AddViewportOverlayWidget
(
TSharedRef< SWidget > InViewportOverlayWidget |
Called when a toolkit requests an overlay widget to be added to the viewport. | |
| void | Called when "Browse Documentation" is clicked for this asset | ||
| bool | Called to test if "Find in Content Browser" should be enabled for this asset | ||
| bool | CanReimport
(
UObject* EditingObject |
Called to check to see if there's an asset capable of being reimported | |
| bool | CanReimport () |
Called to check to see if there's an asset capable of being reimported | |
| bool | CanSaveAsset () |
Called to test if "Save" should be enabled for this asset | |
| bool | Called to test if "Save As" should be enabled for this asset | ||
| void | FillDefaultAssetMenuCommands
(
FToolMenuSection& InSection |
Fills in the supplied menu with commands for modifying this asset that are generally common to most asset editors | |
| void | FillDefaultFileMenuCommands
(
FToolMenuSection& InSection |
Fills in the supplied menu with commands for working with this asset file | |
| void | FillDefaultFileMenuOpenCommands
(
FToolMenuSection& InSection |
Fills in the supplied menu with commands for working with this asset file | |
| void | FillDefaultHelpMenuCommands
(
FToolMenuSection& InSection |
Fills in the supplied menu with commands for the help menu | |
| void | Called when "Find in Content Browser" is clicked for this asset | ||
| UToolMenu * | GenerateCommonActionsToolbar
(
FToolMenuContext& MenuContext |
Generate the toolbar for common asset actions like Save | |
| void | Makes a default asset editing toolbar | ||
| FLinearColor | |||
| const FSlateBrush * | |||
| FString | |||
| UObject * | Returns the single object currently being edited. | ||
| TArray< TObjectPtr< UObject > > & | |||
| const TArray< UObject * > & | Returns an array of all the objects currently being edited. Asserts if editing no objects | ||
| FText | GetLabelForObject
(
const UObject* InObject |
Gets the text to display in a toolkit titlebar for an object | |
| TSharedPtr< IToolkitHost > | |||
| void | GetSaveableObjects
(
TArray< UObject* >& OutObjects |
Get the collection of edited objects that can be saved. | |
| TSharedPtr< FExtensibilityManager > | Returns the default extensibility managers, these are applied for all asset types | ||
| TSharedPtr< FExtensibilityManager > | |||
| TSharedPtr< FTabManager > | |||
| FName | |||
| FName | |||
| FName | GetToolMenuToolbarName
(
FName& OutParentName |
Get name used by tool menu | |
| FName | |||
| FText | GetToolTipTextForObject
(
const UObject* InObject |
Gets the text to display in a toolkit tooltip for an object | |
| bool | Returns true if this toolkit has any objects being edited | ||
| void | InitAssetEditor
(
const EToolkitMode::Type Mode, |
Initializes this asset editor. | |
| void | InitAssetEditor
(
const EToolkitMode::Type Mode, |
Initializes this asset editor. | |
| void | InitToolMenuContext
(
FToolMenuContext& MenuContext |
||
| void | |||
| bool | True if this actually is editing an asset | ||
| bool | Called to test if "Find in Content Browser" should be visible for this asset | ||
| void | OnAssetsSavedAs
(
const TArray< UObject* >& SavedObjects |
Called from SaveAssetAs_Execute when assets have been saved | |
| void | OnClose () |
Called when this toolkit is being closed | |
| bool | OnRequestClose
(
EAssetEditorCloseReason InCloseReason |
Called when this toolkit is requested to close. Returns false if closing should be prevented. | |
| void | OnToolkitHostingFinished
(
const TSharedRef< IToolkit >& Toolkit |
Called when another toolkit (such as a ed mode toolkit) is no longer being hosted in this asset editor toolkit. | |
| void | OnToolkitHostingStarted
(
const TSharedRef< IToolkit >& Toolkit |
Called when another toolkit (such as a ed mode toolkit) is being hosted in this asset editor toolkit. | |
| void | Perform any initialization that should happen after the basic toolkit needs are created for the asset editor. | ||
| void | Called at the end of RegenerateMenusAndToolbars() | ||
| void | Regenerates the menubar and toolbar widgets | ||
| void | Registers default tool bar | ||
| void | RegisterDrawer
(
FWidgetDrawerConfig&& Drawer, |
Registers a drawer for the asset editor status bar | |
| void | Called when "Reimport" is clicked for this asset | ||
| void | Reimport_Execute
(
UObject* EditingObject |
Called when "Reimport" is clicked for this asset | |
| void | |||
| void | RemoveEditingObject
(
UObject* Object |
Removes an item from the Editing Objects list | |
| void | RemoveMenuExtender
(
TSharedPtr< FExtender > Extender |
||
| void | RemoveToolbarExtender
(
TSharedPtr< FExtender > Extender |
||
| void | RemoveViewportOverlayWidget
(
TSharedRef< SWidget > InViewportOverlayWidget |
Called when a toolkit requests the overlay widget to be removed. | |
| void | RestoreFromLayout
(
const TSharedRef< FTabManager::FLayout >& NewLayout |
Applies the passed in layout (or the saved user-modified version if available). | |
| void | Called when "Save" is clicked for this asset | ||
| void | Called when "Save As" is clicked for this asset | ||
| void | SetMenuOverlay
(
TSharedRef< SWidget > Widget |
Allows the caller to set a menu overlay, displayed to the far right of the editor's menu bar | |
| void | SetPreviousWorldCentricToolkitHostForNewAssetEditor
(
TSharedRef< IToolkitHost > ToolkitHost |
Static: Used internally to set the world-centric toolkit host for a newly-created standalone asset editing toolkit | |
| bool | ShouldPromptForNewFilesOnReload
(
const UObject& object |
Called to determine if the user should be prompted for a new file if one is missing during an asset reload | |
| bool | ShouldReopenEditorForSavedAsset
(
const UObject* Asset |
Whether to open a new asset editor for the newly-saved Asset. | |
| void | SwitchToStandaloneEditor_Execute
(
TWeakPtr< FAssetEditorToolkit > ThisToolkitWeakRef |
Static: Called when "Switch to Standalone Editor" is clicked for the asset editor | |
| void | SwitchToWorldCentricEditor_Execute
(
TWeakPtr< FAssetEditorToolkit > ThisToolkitWeakRef |
Static: Called when "Switch to World-Centric Editor" is clicked for the asset editor |
Overridden from IAssetEditorInstance
| Type | Name | Description | |
|---|---|---|---|
| bool | CloseWindow
(
EAssetEditorCloseReason InCloseReason |
||
| void | FocusWindow
(
UObject* ObjectToFocusOn |
||
| TSharedPtr< FTabManager > | |||
| FName | |||
| FName | IAssetEditorInstance interface | ||
| double | |||
| bool | |||
| void | RemoveEditingAsset
(
UObject* Asset |
Overridden from FBaseToolkit
| Type | Name | Description | |
|---|---|---|---|
| void | Creates the Editor mode manager for your class. Default is to create none, for legacy reasons. |
Overridden from IToolkit
| Type | Name | Description | |
|---|---|---|---|
| FText | Returns the localized name of this toolkit type (typically just " |
||
| FEditorModeTools & | Gets the mode manager for this toolkit | ||
| const TArray< UObject * > * | For asset editor toolkits, returns the UObjects for the assets currently being edited | ||
| FText | GetTabSuffix () |
Returns the localized tab suffix | |
| FName | Returns the invariant name of this toolkit type | ||
| FText | Returns the localized name of this toolkit | ||
| FText | Returns the localized tooltip text of this toolkit | ||
| FString | Returns the localize prefix string to use for tab labels in world-centric mode. | ||
| bool | Returns true if this toolkit is used to edit assets (even if it's not necessarily editing one right now.) | ||
| void | RegisterTabSpawners
(
const TSharedRef< FTabManager >& TabManager |
IToolkit interface | |
| void | UnregisterTabSpawners
(
const TSharedRef< FTabManager >& TabManager |
Unregister tabs that this toolkit can spawn |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FAssetEditorToolkit & | operator=
(
const FAssetEditorToolkit& |
Constants
| Name | Description |
|---|---|
| DefaultAssetEditorToolBarName | |
| PreviousWorldCentricToolkitHostForNewAssetEditor | Static: World centric toolkit host to use for the next created asset editing toolkit |
| SharedMenuExtensibilityManager | The extensibility managers shared by all asset types |
| SharedToolBarExtensibilityManager |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| FAssetEditorModeManager * | AssetEditorModeManager | Use EditorModeManager instead. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CloseWindow () |
Use CloseWindow that takes in an EAssetEditorCloseReason instead | |
| FAssetEditorModeManager * | Use GetEditorModeManager instead. | ||
| bool | Use OnRequestClose that takes in an EAssetEditorCloseReason instead | ||
| void | SetAssetEditorModeManager
(
FAssetEditorModeManager* InModeManager |
Override CreateEditorModeManager on the toolkit class instead. |