Navigation
API > API/Editor > API/Editor/UnrealEd
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/EditorWorldUtils.h |
| Include | #include "EditorWorldUtils.h" |
Syntax
class FScopedEditorWorld
Remarks
A helper RAII class to initialize / destroy an editor world. The world will be added to the root set and initialized as an editor world using the provided initialization values. On destruction, will destroy the world and unroot it. This class will also set GWorld & the EditorWorldContext to this world.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FScopedEditorWorld
(
UWorld* InWorld, |
Constructor - Initialize the provided world as an editor world. | ||
FScopedEditorWorld
(
const FStringView InLongPackageName, |
FStringView Constructor - Load the specified package & initialize the world as an editor world. | ||
FScopedEditorWorld
(
const TSoftObjectPtr< UWorld >& InSoftWorld, |
SoftObjectPtr Constructor - Initialize the provided world as an editor world. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor - Destroy the provided world. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UWorld * | GetWorld () |
Obtain the world managed by this scope, or null if the initialization failed. |