Module |
|
Header |
/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h |
Include |
#include "Editor/EditorEngine.h" |
Source |
/Engine/Source/Editor/UnrealEd/Private/EditorEngine.cpp |
AActor * UseActorFactory
(
UActorFactory * Factory,
const FAssetData & AssetData,
const FTransform * ActorLocation,
EObjectFlags ObjectFlags
)
Uses the supplied factory to create an actor at the clicked location and adds to level.
A pointer to the new actor, or NULL on fail.
Parameter |
Description |
---|---|
Factory |
The factory to create the actor from. Must be non-NULL. |
AssetData |
The optional asset to base the actor construction on. |
ActorLocation |
[opt] If null, positions the actor at the mouse location, otherwise specified. Default is null. |
bUseSurfaceOrientation |
[opt] If true, align new actor's orientation to the underlying surface normal. Default is false. |
ObjectFlags |
[opt] The flags to apply to the actor when it is created |