Duplicating a UActorComponent that has an Instanced UPROPERTY does not perform a deep copy of the instanced property. It appears to only copy a reference to the instanced object. Where as, performing a copy of an instanced component will be treated as a "deep copy" instead of a reference.
Project has been attached for easier reproduction.
Expected:
All three components should have their own InstancedProperty object.
Results:
The original component's and the duplicated component's InstancedProperty fields point to the same object.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-68780 in the post.
8 |
Component | UE - Gameplay |
---|---|
Affects Versions | 4.20, 4.21, 4.22 |
Target Fix | 5.0 |
Fix Commit | 16751046 |
---|---|
Main Commit | 16751102 |
Created | Jan 21, 2019 |
---|---|
Resolved | Jun 22, 2021 |
Updated | Jul 7, 2021 |