Given a TMap where the value type is an instanced object: when a child blueprint is saved with modifications to the TMap, and then additional TMap are added to the parent blueprint and the child blueprint reloaded, the new key-value pairs appear in the child blueprint as shallow copies of the instanced object. Making modifications to the child's instanced object also affects the parent's values.
Repro steps:
UPROPERTY(EditAnywhere, AdvancedDisplay, Instanced, Category = AssetUserData) TMap<int32, TObjectPtr<UAssetUserData>> MyMap;
Additional info: Interestingly even after restarting the editor the parent and child blueprints point to the same instanced object.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-191114 in the post.
1 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 5.2 |
Target Fix | 5.4 |
Created | Jul 25, 2023 |
---|---|
Resolved | Dec 20, 2023 |
Updated | Apr 19, 2024 |