Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorEngine
Description
This destroys the given world. It also does editor specific tasks (EG clears selections from that world etc)
| Name | EditorDestroyWorld |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h |
| Include Path | #include "Editor/EditorEngine.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorServer.cpp |
void EditorDestroyWorld
(
FWorldContext & Context,
const FText & CleanseText,
UWorld * NewWorld
)
Parameters
| Name | Remarks |
|---|---|
| Context | The world to destroy |
| CleanseText | Reason for the destruction |
| NewWorld | An optional new world to keep in memory after destroying the world referenced in the Context. This world and it's sublevels will remain in memory. |