FDatasmithUIManager::AddMenuEntry

Add a menu entry to the Datasmith importers drop-down menu

Windows
MacOS
Linux

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/UI/DatasmithUIManager.h

Include

#include "UI/DatasmithUIManager.h"

Source

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/UI/DatasmithUIManager.cpp

Syntax

TSharedPtr< FUICommandInfo > AddMenuEntry
(
    const FString & CommandName,
    const FText & Caption,
    const FText & Description,
    const FString & IconResourcePath,
    FExecuteAction ExecuteAction,
    UClass * FactoryClass
)

Remarks

Add a menu entry to the Datasmith importers drop-down menu

Returns

the FUICommandInfo that was created for that menu entry

Parameters

Parameter

Description

CommandName

The command name (for internal references)

Caption

The text displayed in the menu entry

Description

The tooltip text displayed when hovering over the menu entry

IconResourcePath

The relative path to the .png file for the icon to be displayed in the menu

ExecuteAction

The action to be executed when the menu entry is selected

FactoryClass

The UClass of the factory to associate with the menu entry

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss