UGameplayStatics::OpenLevelBySoftObjectPtr

Travel to another level

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h

Include

#include "Kismet/GameplayStatics.h"

Source

/Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp

Syntax

static void OpenLevelBySoftObjectPtr
(
    const UObject * WorldContextObject,
    const TSoftObjectPtr< UWorld > Level,
    bool bAbsolute,
    FString Options
)

Remarks

Travel to another level

Parameters

Parameter

Description

Level

the level to open

bAbsolute

if true options are reset, if false options are carried over from current level

Options

a string of options to use for the travel URL

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