Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/World.h |
Include |
#include "Engine/World.h" |
class FScopedLevelCollectionContextSwitch
A helper RAII class to set the relevant context on a UWorld for a particular FLevelCollection within a scope. The constructor will set the PersistentLevel, GameState, NetDriver, and DemoNetDriver on the world and the destructor will restore the original values.
Name | Description | |
---|---|---|
|
FScopedLevelCollectionContextSwitch ( |
Constructor that will save the current relevant values of InWorld and set the collection's context values for InWorld. |
|
FScopedLevelCollectionContextSwitch |
Constructor that will save the current relevant values of InWorld and set the collection's context values for InWorld. |
Name | Description | |
---|---|---|
|
~FScopedLevelCollectionContextSwitch() |
The destructor restores the context on the world that was saved in the constructor. |