UEditorEngine::AddActor

Adds an actor to the world at the specified location.

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

virtual AActor * AddActor
(
    ULevel * InLevel,
    UClass * Class,
    const FTransform & Transform,
    bool bSilent,
    EObjectFlags ObjectFlags
)

Remarks

Adds an actor to the world at the specified location.

Returns

A pointer to the newly added actor, or NULL if add failed.

Parameters

Parameter

Description

InLevel

Level in which to add the actor

Class

A non-abstract, non-transient, placeable class. Must be non-NULL.

Transform

The world-space transform to spawn the actor with.

bSilent

If true, suppress logging (optional, defaults to false).

ObjectFlags

The object flags to place on the spawned actor.

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