# TMap Struct value is not editable in components inherited from C++

**URL:** <https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526>\
**Category:** Blueprint\
**Tags:** workaround, unreal-engine, bug-report, CPP, Blueprint, question\
**Created:** [November 26, 2016, 11:18pm UTC](https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526 "2016-11-26T23:18:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![LM13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LM13](https://forums.unrealengine.com/u/LM13)\
**Post date:** [November 26, 2016, 11:18pm UTC](https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526/1 "2016-11-26T23:18:34Z")

</div>

Hello again,  
since 4.14 added support for TMap in editor I wanted to check it out. Here’s a list on how to reproduce the bug I have found, and some screenshots for quick reference.

1. Create New Project - Basic Code

2. Create New C++ Class - based on Actor (MyActor)

3. Create New C++ Class - based on ActorComponent (MyActorComponent)

4. Change code in MyActorComponent.h to:

5. Add following lines to MyActor.h

6. Change constructor in MyActor.cpp to:

7. Create Actor blueprint based on MyActor and check MyMap in MyComponent .

 ![116502-case_0.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/2/4c26032abd8ab735949ad1bff7b922490de334e4.jpeg)

1. For a workaround, go back to MyActorComponent.h and add the following:

2. Now TMap value can be changed from editor

 ![116503-case_1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/e/cee68c1a9a2c42de6e78e355531ab815de58d6f7.jpeg)

Conclusion:

UStructs used as Values in TMaps used in ActorComponents inherited from C++ are not editable in editor, unless a TArray is added in the same C++ class. ActorComponents added from editor does not have this issue.

---

<div class="post-metadata">

**Author:** ![Vertex\_Soup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vertex\_Soup](https://forums.unrealengine.com/u/Vertex_Soup)\
**Post date:** [November 27, 2016, 12:53am UTC](https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526/2 "2016-11-27T00:53:53Z")

</div>

I’m just curious, did you enabled them in Editor Setting \> Content Editor \> Blueprint Editor\> Experimental \> Enable (incomplete, non-working) support for TSet and TMap?

---

<div class="post-metadata">

**Author:** ![LM13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LM13](https://forums.unrealengine.com/u/LM13)\
**Post date:** [November 27, 2016, 8:13am UTC](https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526/3 "2016-11-27T08:13:42Z")

</div>

I have that option disabled. Now I’m curious, should it be checked? I don’t see any difference.

---

<div class="post-metadata">

**Author:** ![Vertex\_Soup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vertex\_Soup](https://forums.unrealengine.com/u/Vertex_Soup)\
**Post date:** [November 27, 2016, 10:49am UTC](https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526/4 "2016-11-27T10:49:58Z")

</div>

Haha, yes of course it is stated there in name of checkbox what it is for 😛 mark it 🙂 Tell the difference 🙂

---

<div class="post-metadata">

**Author:** ![Vertex\_Soup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vertex\_Soup](https://forums.unrealengine.com/u/Vertex_Soup)\
**Post date:** [November 27, 2016, 10:51am UTC](https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526/5 "2016-11-27T10:51:21Z")

</div>

You probably need to restart editor after enabling it as well. So it can load up with fresh config. To be sure recompile your blueprints that use this feature as well.

---

<div class="post-metadata">

**Author:** ![LM13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LM13](https://forums.unrealengine.com/u/LM13)\
**Post date:** [November 27, 2016, 6:09pm UTC](https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526/6 "2016-11-27T18:09:26Z")

</div>

Sorry for late reply, I’ve checked “Enable (incomplete, non-working) support for TSet and TMap” option, recompiled MyActor blueprint, restarted editor, and even created new Blueprint after that. Struct value is still not visible/editable from editor, just like you can see in screenshots. Can anyone reproduce it?

---

<div class="post-metadata">

**Author:** ![Vertex\_Soup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vertex\_Soup](https://forums.unrealengine.com/u/Vertex_Soup)\
**Post date:** [November 28, 2016, 10:55am UTC](https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526/7 "2016-11-28T10:55:13Z")

</div>

It says Incomplete, non-working either way so I would personally do not expect wonders 🙂 Sure guys at Epic already looking at this. At least I hope.

---

<div class="post-metadata">

**Author:** ![LM13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LM13](https://forums.unrealengine.com/u/LM13)\
**Post date:** [November 28, 2016, 4:17pm UTC](https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526/8 "2016-11-28T16:17:05Z")

</div>

Yeah, I guess so 😃 After reading release notes for 4.14 I thought TMaps are supported officially. At least there’s a workaround for my case.

Anyway, thank you very much for replying 🙂 since you were the only person interested.

---

<div class="post-metadata">

**Author:** ![Vertex\_Soup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vertex\_Soup](https://forums.unrealengine.com/u/Vertex_Soup)\
**Post date:** [November 28, 2016, 9:32pm UTC](https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526/9 "2016-11-28T21:32:32Z")

</div>

No problem man! I might need them soon as well 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [December 1, 2016, 9:57pm UTC](https://forums.unrealengine.com/t/tmap-struct-value-is-not-editable-in-components-inherited-from-c/377526/10 "2016-12-01T21:57:49Z")

</div>

Hi ,

I looked into this today, and was able to see the same results that you described. I have entered [UE-39260](https://issues.unrealengine.com/issue/UE-39260) to have this investigated further.
