UWorld::DuplicateWorldForPIE

Given a loaded editor [UWorld](API\Runtime\Engine\Engine\UWorld), duplicate it for play in editor purposes with OwningWorld as the world with the persistent level.

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

static UWorld * DuplicateWorldForPIE
(
    const FString & PackageName,
    UWorld * OwningWorld
)

Remarks

Given a loaded editor UWorld, duplicate it for play in editor purposes with OwningWorld as the world with the persistent level.

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