# I came up with a way to make singletons in Verse

**URL:** <https://forums.unrealengine.com/t/i-came-up-with-a-way-to-make-singletons-in-verse/1139453>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [April 24, 2023, 3:22pm UTC](https://forums.unrealengine.com/t/i-came-up-with-a-way-to-make-singletons-in-verse/1139453 "2023-04-24T15:22:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![AndrewScheidecker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrewscheidecker/32/926976_2.png) [@AndrewScheidecker](https://forums.unrealengine.com/u/AndrewScheidecker)\
**Post date:** [May 6, 2023, 12:05pm UTC](https://forums.unrealengine.com/t/i-came-up-with-a-way-to-make-singletons-in-verse/1139453/4 "2023-05-06T12:05:37Z")

</div>

Good find!

Unfortunately, there is a reason why we don’t let you declare a global `var`: we’re not done implementing global variables, and want to reserve the right to change their behavior without breaking everybody’s code, so for now we disallow them.

We recently discovered this particular loophole ourselves, and are in the process of closing it. I recommend against using it in the meantime, as once we close the loophole, your code won’t compile.

For now, you only have round-scoped variables on device classes.

---

_[View the full topic](https://forums.unrealengine.com/t/i-came-up-with-a-way-to-make-singletons-in-verse/1139453)._
