Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FActorFactoryAssetProxy
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/AssetSelection.h |
| Include | #include "AssetSelection.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/AssetSelection.cpp |
static UActorFactory * GetFactoryForAsset
(
const FAssetData & DropData,
bool bRequireValidObject
)
Remarks
Find the appropriate actor factory for an asset by type. the factory that is responsible for creating actors for the specified asset type.
Parameters
| Name | Description |
|---|---|
| AssetData | contains information about an asset that to get a factory for |
| bRequireValidObject | indicates whether a valid asset object is required. specify false to allow the asset class's CDO to be used in place of the asset if no asset is part of the drag-n-drop |