UEditorEngine::UseActorFactoryOnCurrentSelection

Uses the supplied factory to create an actor at the clicked location and adds to level.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h

Include

#include "Editor/EditorEngine.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorEngine.cpp

Syntax

AActor * UseActorFactoryOnCurrentSelection
(
    UActorFactory * Factory,
    const FTransform * InActorTransform,
    EObjectFlags ObjectFlags
)

Remarks

Uses the supplied factory to create an actor at the clicked location and adds to level.

Returns

A pointer to the new actor, or NULL on fail.

Parameters

Parameter

Description

Factory

The factory to create the actor from. Must be non-NULL.

ObjectFlags

[opt] The flags to apply to the actor when it is created

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss