# Load a temporary level and return

**URL:** <https://forums.unrealengine.com/t/load-a-temporary-level-and-return/354970>\
**Category:** C++\
**Tags:** level-loading, unreal-engine, dynamic, UE4, CPP, question\
**Created:** [April 21, 2016, 3:44pm UTC](https://forums.unrealengine.com/t/load-a-temporary-level-and-return/354970 "2016-04-21T15:44:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lordGoldemort](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lordGoldemort](https://forums.unrealengine.com/u/lordGoldemort)\
**Post date:** [April 21, 2016, 3:44pm UTC](https://forums.unrealengine.com/t/load-a-temporary-level-and-return/354970/1 "2016-04-21T15:44:29Z")

</div>

I want to do a thing a bit like Final Fantasy battles, where the players are teleported to a new level to do a sub-game (which might be fighting, but will also be other stuff) and are then transported back to the current level at the end. Is there an API for this, or must I cache the entire state of the actors in the level, load the temporary one, then load the previous one and restore everything?

---

<div class="post-metadata">

**Author:** ![HaxO](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/haxo/32/1008648_2.png) [@HaxO](https://forums.unrealengine.com/u/HaxO)\
**Post date:** [April 21, 2016, 3:48pm UTC](https://forums.unrealengine.com/t/load-a-temporary-level-and-return/354970/2 "2016-04-21T15:48:04Z")

</div>

The Game Instance from @Rama appears to be what you want, It is a pretty simple way to store persistent data between levels.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...
