Description

TMaps that use hashable structs as the key cannot have the key set for an element that is added to the TMap in a Blueprint. A default value is set, but it cannot be seen or modified.

Steps to Reproduce
  1. Create a new Basic Code project.
  2. Add a new Actor code class to the project.
  3. In the header file, add the following property to the body of the class:
    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = TestCat)
    TMap<FLinearColor, float> MyMap;
    
  4. Create a Blueprint based on the new Actor class.
  5. Locate the MyMap property in the Blueprint.
  6. Add an element to MyMap.

RESULT:
The value of the element can be set, but the key is not visible or editable.

EXPECTED:
The key is visible and can be set by the user.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-42445 in the post.

5
Login to Vote

Fixed
ComponentTools
Affects Versions4.154.16
Target Fix4.16
Fix Commit3357176
Main Commit3379345
CreatedFeb 28, 2017
ResolvedMar 21, 2017
UpdatedFeb 4, 2019
View Jira Issue