UWorld::RemoveActor

Removes the passed in actor from the actor lists.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/World.h

Include

#include "Engine/World.h"

Source

/Engine/Source/Runtime/Engine/Private/World.cpp

Syntax

void RemoveActor
(
    AActor * Actor,
    bool bShouldModifyLevel
) const

Remarks

Removes the passed in actor from the actor lists. Please

that the code actually doesn't physically remove the index but rather clears it so other indices are still valid and the actors array size doesn't change.

Parameters

Parameter

Description

Actor

Actor to remove.

bShouldModifyLevel

If true, Modify() the level before removing the actor if in the editor.

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