TMaps do not function as I would expect when blueprinted. Any change made to the instance completely disables inheritance of all changes to the CDO, rather than only overriding the keys that are modified.
Repro as pictures follows.
Initial situation:
[Link Removed]
Modify Foo in instance:
[Link Removed]
Modify Bar in BP:
[Link Removed]
Add Baz to BP:
[Link Removed]
Definition of test class used:
UCLASS(Blueprintable)
class AMapTestActor : public AActor
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Test)
TMap<FString, int> Map;
};
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-90813 in the post.
1 |
Component | UE - Gameplay - Blueprint Editor |
---|---|
Affects Versions | 4.25 |
Created | Mar 18, 2020 |
---|---|
Updated | Aug 29, 2024 |