Navigation
Unreal Engine C++ API Reference > 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 AActor &42; AddActorForAsset
&40;
UObject &42; AssetObj,
bool SelectActor,
EObjectFlags ObjectFlags,
UActorFactory &42; FactoryToUse,
const FName Name
&41;
Remarks
Places an actor instance using the factory appropriate for the type of asset the actor that was created by the factory, or NULL if there aren't any factories for this asset (or the actor couldn't be created for some other reason)
Parameters
Name | Description |
---|---|
AssetObj | the asset that is contained in the d&d operation |
ObjectFlags | The object flags to place on the actor when it is spawned |
FactoryToUse | optional actor factory to use to create the actor; if not specified, the highest priority factory that is valid will be used |