Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine > UWorld
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 |
void RemoveActor
&40;
AActor &42; Actor,
bool bShouldModifyLevel
&41; const
Remarks
Removes the passed in actor from the actor lists. Please note 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
Name | Description |
---|---|
Actor | Actor to remove. |
bShouldModifyLevel | If true, Modify() the level before removing the actor if in the editor. |