# How many Variables are too many inside a BP Struct?

**URL:** <https://forums.unrealengine.com/t/how-many-variables-are-too-many-inside-a-bp-struct/2315445>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [February 3, 2025, 3:16am UTC](https://forums.unrealengine.com/t/how-many-variables-are-too-many-inside-a-bp-struct/2315445 "2025-02-03T03:16:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 3, 2025, 10:25am UTC](https://forums.unrealengine.com/t/how-many-variables-are-too-many-inside-a-bp-struct/2315445/2 "2025-02-03T10:25:10Z")

</div>

You will be limited by FString and not variable count. The summed length of the data + quotation marks, commas and curly brackets is really the limit.

Though the longer your string the more calculations will go into parsing / building back and forth between JSON and FString.

> [@Does the FString have a length limit?](https://forums.unrealengine.com/t/does-the-fstring-have-a-length-limit/410298/2):
>
> Ofcourse it does, but i doubt you’ll reach it anytime soon with a normal game. “Len” returns the length as Int32(which is a little flaw in my opinion since length/size can not be smaller than 0). Deriving from it, that it supports the full 31 Bits of the positive space of Int32, you can create a string with up to 2.147.483.647 characters. IIRC a TChar is 1 Byte, this means a FString of roughly 2GB(!). Nothing beyond this is possbile, because otherwhise Int32 will flip to negative value.

Main question is why would you need 500+ variables inside of a single struct? Are you making the right design choices?

Maybe some of this should be split into actors and serialized into a save file?

If you are basically trying to create a database then why not just use one?

You could go the route of a file database via SQLite for something like this (better than datatables because it can be modified at runtime)

Tutorial on using SQLite with Unreal. It’s an external link:

> **[Using SQLite with Unreal | Coding Babble](https://codingbabble.com/posts/using-sqlite-with-unreal/)**
>
> In this post I'll explain how to add SQLite to your Unreal project.

---

_[View the full topic](https://forums.unrealengine.com/t/how-many-variables-are-too-many-inside-a-bp-struct/2315445)._
