# How to set and save the time of the world?

**URL:** <https://forums.unrealengine.com/t/how-to-set-and-save-the-time-of-the-world/478954>\
**Category:** World Creation\
**Tags:** rotation, game-instance, open-level, real-time, unreal-engine, level, question\
**Created:** [February 17, 2021, 7:28pm UTC](https://forums.unrealengine.com/t/how-to-set-and-save-the-time-of-the-world/478954 "2021-02-17T19:28:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChunkyCat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChunkyCat](https://forums.unrealengine.com/u/ChunkyCat)\
**Post date:** [February 17, 2021, 7:28pm UTC](https://forums.unrealengine.com/t/how-to-set-and-save-the-time-of-the-world/478954/1 "2021-02-17T19:28:52Z")

</div>

Hi everyone, I was wondering if it is possible to save and set the time of the world when opening one level to another? This would mean I would have to save the current rotation of the world (via game instance) and set it when opening a new level. I have tried implementing this into the blueprint but it doesn’t work. Could I be doing something some kind of mistake?

 ![330054-ue4-image-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/0/4b06eb7ea1931f0e4e91b7deca35d6cb54e90195.png)

![330055-ue4-image-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/c/c0cac6e13b8767f80db4c21d50c7cfaa888fca9b.png)

 ![330056-ue4-image-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/b/0db450a4e3380268d6edc69f523fd215020443ff.png)

---

<div class="post-metadata">

**Author:** ![FatalBreak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FatalBreak](https://forums.unrealengine.com/u/FatalBreak)\
**Post date:** [February 17, 2021, 8:15pm UTC](https://forums.unrealengine.com/t/how-to-set-and-save-the-time-of-the-world/478954/2 "2021-02-17T20:15:40Z")

</div>

Are you sure the default GameInstance class for the game is actually Game\_Instance? Verify that as it may not be and would be failing the cast every time.

Have you tied a print string to the cast failed exec pins and the rotator pins to check the outputs? I’d be checking for failed casts before anything on this.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 17, 2021, 9:56pm UTC](https://forums.unrealengine.com/t/how-to-set-and-save-the-time-of-the-world/478954/3 "2021-02-17T21:56:05Z")

</div>

You need to tell UE to use your game instance in the project settings:

 ![330072-screenshot-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/6/266aa209550dc505b8f7db0f482eaef33814f5d1.jpeg)
