If a TMap containing a struct is created in a custom code class, the properties of the struct do not appear when elements are added to the TMap in the Blueprint editor.

Steps to Reproduce
  1. Download the attached project.
  2. Unzip the project and associate it with your version of Main.
  3. Build the project in Visual Studio.
  4. Open the project in the Editor.
  5. Open the MyActor_BP Blueprint in the full Blueprint editor.
  6. Select MyComponent in the Components tab.
  7. In the details panel, locate the Test category.
  8. Add an element to the My Map property.

You can add elements to the TMap, but the properties contained in the struct that makes up each element of the TMap do not appear.

The struct properties appear in each element of the TMap.

If you add a property to the class containing the TMap that is the same as the struct in the TMap, then the properties of the struct will appear in each element of the TMap. To see this, open the MyActorComponent.h file in Visual Studio and uncomment the two lines adding a FMyStruct property to the class.

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

Login to Vote

Affects Versions4.144.15
Target Fix4.15
Fix Commit3223212
Main Commit3229477
CreatedDec 1, 2016
ResolvedDec 6, 2016
UpdatedFeb 4, 2019