FScopedLevelCollectionContextSwitch::FScopedLevelCollectionContextSwitch

Constructor that will save the current relevant values of InWorld and set the collection's context values for InWorld.

Windows
MacOS
Linux

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

Syntax

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

Parameter

Description

InLevelCollection

The collection's context to use

InWorld

The world on which to set the context.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss