UEditorEngine::UseActorFactory

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 * UseActorFactory
(
    UActorFactory * Factory,
    const FAssetData & AssetData,
    const FTransform * ActorLocation,
    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.

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

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