# How to update a map of a map (using a struct as a go-between)?

**URL:** <https://forums.unrealengine.com/t/how-to-update-a-map-of-a-map-using-a-struct-as-a-go-between/1259949>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [August 13, 2023, 8:13pm UTC](https://forums.unrealengine.com/t/how-to-update-a-map-of-a-map-using-a-struct-as-a-go-between/1259949 "2023-08-13T20:13:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eobet](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eobet/32/465239_2.png) [@eobet](https://forums.unrealengine.com/u/eobet)\
**Post date:** [August 13, 2023, 8:13pm UTC](https://forums.unrealengine.com/t/how-to-update-a-map-of-a-map-using-a-struct-as-a-go-between/1259949/1 "2023-08-13T20:13:06Z")

</div>

I need to have a map of a map, which I know isn’t possible in Blueprints.

So instead, I put the second map in a struct (as been suggested elsewhere).

My issue now is… how do I update this? Because despite the below rather long chain of nodes from the screenshot, my new values get lost somewhere:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/f/ecfa09f91fc53ae244ed0f9a9e24779ec3a9ce96.png)

Anyone have a better/generalized solution for this map - struct- map - struct problem?

(I also want to include this in a save game, which I hope won’t be an issue as long as I check every “save game” box for every struct variable… fingers crossed.)

---

<div class="post-metadata">

**Author:** ![eobet](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eobet/32/465239_2.png) [@eobet](https://forums.unrealengine.com/u/eobet)\
**Post date:** [August 14, 2023, 8:27am UTC](https://forums.unrealengine.com/t/how-to-update-a-map-of-a-map-using-a-struct-as-a-go-between/1259949/2 "2023-08-14T08:27:34Z")

</div>

Someone told me that something like this attempt might be a workaround for the lack of FindByRef but it seems to either not work, or I misunderstood something (also, sad about the inability to put it into a wildcard macro as I tried here):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/6/586a5263730c0f45b6e1e140c10942754239eaab.png)

---

<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:** [August 14, 2023, 9:07am UTC](https://forums.unrealengine.com/t/how-to-update-a-map-of-a-map-using-a-struct-as-a-go-between/1259949/3 "2023-08-14T09:07:54Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/1/1a14fd9b7044a94db5b87f6b8fabbddfc6e0e192.png)

Mhm, delicious copypasta, indeed.

* * *

We’re updating this, right?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/4/be4da2685f2e01f449d2027e4569912283868451.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/f/32f3e8687ec817943d92e7f3718b02ae2432ed90.png)

---

<div class="post-metadata">

**Author:** ![eobet](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eobet/32/465239_2.png) [@eobet](https://forums.unrealengine.com/u/eobet)\
**Post date:** [August 14, 2023, 3:51pm UTC](https://forums.unrealengine.com/t/how-to-update-a-map-of-a-map-using-a-struct-as-a-go-between/1259949/4 "2023-08-14T15:51:38Z")

</div>

Yessss, fantastic thank you!

Here’s what your solution looks like on my side, and while it works it makes me also seriously question using this method of circumventing Epic’s limitations and instead try to come up with something else… 😅

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/a/eda1f30e8fb8dfe727912431454756cfd9be8c36.png)

---

<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:** [September 13, 2023, 3:52pm UTC](https://forums.unrealengine.com/t/how-to-update-a-map-of-a-map-using-a-struct-as-a-go-between/1259949/5 "2023-09-13T15:52:04Z")

</div>

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