# How to pass variable value when opening new level?

**URL:** <https://forums.unrealengine.com/t/how-to-pass-variable-value-when-opening-new-level/1181022>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [May 28, 2023, 6:48am UTC](https://forums.unrealengine.com/t/how-to-pass-variable-value-when-opening-new-level/1181022 "2023-05-28T06:48:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [May 28, 2023, 7:01am UTC](https://forums.unrealengine.com/t/how-to-pass-variable-value-when-opening-new-level/1181022/2 "2023-05-28T07:01:10Z")

</div>

By default only GameInstance is not destroyed between level changes so it’s a good place to keep persistent stuff, all your other actors get destroyed and then spawned with default data. You can prevent it with some tinkering [Keeping Actors Between Levels - #2 by Crzyhomer](https://forums.unrealengine.com/t/keeping-actors-between-levels/3085/2)

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-pass-variable-value-when-opening-new-level/1181022)._
