UGameplayStatics::OpenLevel

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 OpenLevel
(
    const UObject * WorldContextObject,
    FName LevelName,
    bool bAbsolute,
    FString Options
)

Remarks

Travel to another level

Parameters

Parameter

Description

LevelName

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback