Module |
|
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
)
Find the appropriate actor factory for an asset by type.
the factory that is responsible for creating actors for the specified asset type.
Parameter |
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 |