Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FScopedLevelCollectionContextSwi-
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FScopedLevelCollectionContextSwitch
(
const FLevelCollection*const InLevelCollection, |
Constructor that will save the current relevant values of InWorld and set the collection's context values for InWorld. | Engine/World.h | |
FScopedLevelCollectionContextSwitch
(
int32 InLevelCollectionIndex, |
Constructor that will save the current relevant values of InWorld and set the collection's context values for InWorld. | Engine/World.h |
FScopedLevelCollectionContextSwitch(const FLevelCollection const, UWorld const)
Description
Constructor that will save the current relevant values of InWorld and set the collection's context values for InWorld. The constructor that takes an index is preferred, but this one still exists for backwards compatibility.
| Name | FScopedLevelCollectionContextSwitch |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
| Include Path | #include "Engine/World.h" |
| Source | /Engine/Source/Runtime/Engine/Private/World.cpp |
FScopedLevelCollectionContextSwitch
(
const FLevelCollection *const InLevelCollection,
UWorld *const InWorld
)
Parameters
| Name | Remarks |
|---|---|
| InLevelCollection | The collection's context to use |
| InWorld | The world on which to set the context. |
FScopedLevelCollectionContextSwitch(int32, UWorld *const)
Description
Constructor that will save the current relevant values of InWorld and set the collection's context values for InWorld.
| Name | FScopedLevelCollectionContextSwitch |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
| Include Path | #include "Engine/World.h" |
| Source | /Engine/Source/Runtime/Engine/Private/World.cpp |
FScopedLevelCollectionContextSwitch
(
int32 InLevelCollectionIndex,
UWorld *const InWorld
)
Parameters
| Name | Remarks |
|---|---|
| InLevelCollectionIndex | The index of the collection to use |
| InWorld | The world on which to set the context. |