Module |
|
Header |
/Engine/Source/Editor/UnrealEd/Public/AssetSelection.h |
Include |
#include "AssetSelection.h" |
Source |
/Engine/Source/Editor/UnrealEd/Private/AssetSelection.cpp |
static AActor * AddActorForAsset
(
UObject * AssetObj,
bool SelectActor,
EObjectFlags ObjectFlags,
UActorFactory * FactoryToUse,
const FName Name
)
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)
Parameter |
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 |