# Is TMap in TMap safe at Blueprint?

**URL:** <https://forums.unrealengine.com/t/is-tmap-in-tmap-safe-at-blueprint/1890521>\
**Category:** Blueprint\
**Tags:** Struct, tmap, unreal-engine, Blueprint, question\
**Created:** [June 5, 2024, 8:54am UTC](https://forums.unrealengine.com/t/is-tmap-in-tmap-safe-at-blueprint/1890521 "2024-06-05T08:54:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [June 5, 2024, 8:54am UTC](https://forums.unrealengine.com/t/is-tmap-in-tmap-safe-at-blueprint/1890521/1 "2024-06-05T08:54:12Z")

</div>

For some reason I want to create a Custom Structure that uses a TMap and use it as the value of the TMap.  
But I am concerned because having a structure within a structure has caused problems in the past and ruined the entire project.  
That happened i do some complicated changes in previous versions, but this time i going to use a simple structure with only TMap.  
So I think it’s probably safe, but I’d like to know in advance what risks and problems may be involved.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 5, 2024, 9:07am UTC](https://forums.unrealengine.com/t/is-tmap-in-tmap-safe-at-blueprint/1890521/2 "2024-06-05T09:07:32Z")

</div>

> [@turbotanaka](#):
>
> I think it’s probably safe

Famous last words, eh?

There are **still** risks involved and there are target fixes for UE v5.5 - worst case scenario, a total irreversible corruption. The riskiest part, afaik, is modifying the struct’s signature while it’s exposed as a variable, especially if it has enumerator that you also update…

There are some workarounds, too. The most common and oldest one:

- save all
- modify struct signature
- save struct
- quit project
- ⚠ **do not save anything else when prompted** ⚠

* * *

Note that it’s an issue with BP declared structs only.

---

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [June 5, 2024, 9:43am UTC](https://forums.unrealengine.com/t/is-tmap-in-tmap-safe-at-blueprint/1890521/3 "2024-06-05T09:43:41Z")

</div>

hmm…still risks involved…  
I encountered this problem two years ago.  
I didn’t realize this problem was that serious. I’m glad I asked the question.  
And I swear never ever modifying the signature.  
Thank you for the information.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [June 5, 2024, 2:14pm UTC](https://forums.unrealengine.com/t/is-tmap-in-tmap-safe-at-blueprint/1890521/4 "2024-06-05T14:14:17Z")

</div>

as a possible solution have a struct of 2 arrays instead of a map, or 3 or 4.

works just like a map as long as you ensure the indexs are the same. I needed to do this since Maps arent replicated either.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 5, 2024, 2:15pm UTC](https://forums.unrealengine.com/t/is-tmap-in-tmap-safe-at-blueprint/1890521/5 "2024-07-05T14:15:02Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
