# Data Structures (Maps and Sets)

**URL:** <https://forums.unrealengine.com/t/data-structures-maps-and-sets/376523>\
**Category:** Blueprint\
**Tags:** data-structures, maps, unreal-engine, Blueprint, question\
**Created:** [November 16, 2016, 8:35pm UTC](https://forums.unrealengine.com/t/data-structures-maps-and-sets/376523 "2016-11-16T20:35:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![CyanBalloon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CyanBalloon](https://forums.unrealengine.com/u/CyanBalloon)\
**Post date:** [November 16, 2016, 8:35pm UTC](https://forums.unrealengine.com/t/data-structures-maps-and-sets/376523/1 "2016-11-16T20:35:46Z")

</div>

Hi,

Anyone actually knows how to define **Maps and Sets** in Blueprint Scripting? Is it actually possible, or is it C++ only? I really can’t seem to find any documentation on this other than the C++ TMap data structure.

Sorry if the question has already been answered, but since maps and sets are words used **extensively** for other meanings, it’s really hard to pinpoint any information concerning this.

Thanks!

–

As stated in the 4.14 release:

 ![115184-maps+and+sets.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/6/3069e8519ec979bc9916faf831bf42c733cce913.png)

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [November 17, 2016, 2:16am UTC](https://forums.unrealengine.com/t/data-structures-maps-and-sets/376523/2 "2016-11-17T02:16:42Z")

</div>

Yes you can use then in blueprints, it’s option in array icon

---

<div class="post-metadata">

**Author:** ![CyanBalloon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CyanBalloon](https://forums.unrealengine.com/u/CyanBalloon)\
**Post date:** [November 17, 2016, 2:26am UTC](https://forums.unrealengine.com/t/data-structures-maps-and-sets/376523/3 "2016-11-17T02:26:46Z")

</div>

Well, I am at a complete loss. I’ve updated to 4.14, and there are no such options in the details panel. The only option I have is to make it an array! Do I need to change anything in the settings? Or is there a special hotkey to make the options appear?

![115231-variable+options.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/6/2464072ed0f1604a0011c5d0ab5fc6ae41ead630.png)

---

<div class="post-metadata">

**Author:** ![CriErr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CriErr](https://forums.unrealengine.com/u/CriErr)\
**Post date:** [November 18, 2016, 5:43am UTC](https://forums.unrealengine.com/t/data-structures-maps-and-sets/376523/4 "2016-11-18T05:43:06Z")

</div>

Yep, i failed to find those as well.

---

<div class="post-metadata">

**Author:** ![CriErr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CriErr](https://forums.unrealengine.com/u/CriErr)\
**Post date:** [November 18, 2016, 5:53am UTC](https://forums.unrealengine.com/t/data-structures-maps-and-sets/376523/5 "2016-11-18T05:53:38Z")

</div>

You have to go to Editor Preferences\>Blueprint Editor\>Experimental. Its the second option that says “Enable support for TMaps and TSets.”

Don’t jump on it, the feature is unstable and nonfunctional, at all, you can do anything with it.

---

<div class="post-metadata">

**Author:** ![CyanBalloon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CyanBalloon](https://forums.unrealengine.com/u/CyanBalloon)\
**Post date:** [November 18, 2016, 6:34am UTC](https://forums.unrealengine.com/t/data-structures-maps-and-sets/376523/6 "2016-11-18T06:34:40Z")

</div>

I’ll give it a try, but won’t go with the idea of it being the holy grail. Thank you for your answer ;)!

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [November 20, 2016, 3:49am UTC](https://forums.unrealengine.com/t/data-structures-maps-and-sets/376523/7 "2016-11-20T03:49:42Z")

</div>

Sry i was thinking there is as i seen his post (he got this from master build quite few weeks ago), so i guess it is C++ only for now, sry again

---

<div class="post-metadata">

**Author:** ![CyanBalloon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CyanBalloon](https://forums.unrealengine.com/u/CyanBalloon)\
**Post date:** [November 23, 2016, 2:50am UTC](https://forums.unrealengine.com/t/data-structures-maps-and-sets/376523/8 "2016-11-23T02:50:28Z")

</div>

Haha, it’s specified that it’s “non-functional”, like you said. Can’t help wondering why they added it at all…

---

<div class="post-metadata">

**Author:** ![CriErr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CriErr](https://forums.unrealengine.com/u/CriErr)\
**Post date:** [November 23, 2016, 3:06am UTC](https://forums.unrealengine.com/t/data-structures-maps-and-sets/376523/9 "2016-11-23T03:06:27Z")

</div>

Dunno, if i have to guess, for now, you would be able to create one in c++ and use it there but tweak stuff from an editor.
