FLevelEditorActionCallbacks::AddActor

Called when the AddActor command is executed

Unreal Engine C++ API Reference > Editor > LevelEditor > FLevelEditorActionCallbacks

References

   
Module LevelEditor
Header /Engine/Source/Editor/LevelEditor/Public/LevelEditorActions.h
Include #include "LevelEditorActions.h"
Source /Engine/Source/Editor/LevelEditor/Private/LevelEditorActions.cpp
static [AActor](API\Runtime\Engine\GameFramework\AActor) * AddActor
(
    [UActorFactory](API\Editor\UnrealEd\ActorFactories\UActorFactory) * ActorFactory,
    const [FAssetData](API\Runtime\CoreUObject\AssetRegistry\FAssetData) & AssetData,
    const FTransform * ActorLocation
)

Remarks

Called when the AddActor command is executed

Parameters

Name Description
ActorFactory The actor factory to use when adding the actor
bUsePlacement Whether to use the placement editor. If not, the actor will be placed at the last click.
ActorLocation [opt] If NULL, positions the actor at the mouse location, otherwise the location specified. Default is true.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library