Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine > FScopedLevelCollectionContextSwitch > FScopedLevelCollectionContextSwitch
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 |
FScopedLevelCollectionContextSwitch
(
const FLevelCollection *const InLevelCollection,
UWorld *const InWorld
)
Remarks
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.
Parameters
Name | Description |
---|---|
InLevelCollection | The collection's context to use |
InWorld | The world on which to set the context. |