Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FActorFactoryAssetProxy
Description
Builds a list of strings for populating the actor factory context menu items. This menu is shown when the user right-clicks in a level viewport.
| Name | GenerateActorFactoryMenuItems |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/AssetSelection.h |
| Include Path | #include "AssetSelection.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/AssetSelection.cpp |
static void GenerateActorFactoryMenuItems
(
const FAssetData & AssetData,
TArray < FMenuItem > * OutMenuItems,
bool ExcludeStandAloneFactories
)
Parameters
| Name | Remarks |
|---|---|
| AssetData | The asset the factories should consider when building the menus. |
| OutMenuItems | receives the list of menu items to use for populating an actor factory menu. |
| ExcludeStandAloneFactories | if true, only factories that can create actors with the currently selected assets will be added |