Description

A Component Array doesn't update properly when using Structure Variables. Any array elements added after the setup don't get printed when the event is called. If you set the "Editable when Inherited" checkbox for the created component to false the issue doesn't occur.

I couldn't reproduce this in 4.19.2 (CL-4033788) as the setup had issues executing. This was tested and reported in 4.20.2 (CL-4302132) and reproduced in Main 4.21 (CL-4370874)

Steps to Reproduce
  1. Open the UE4 Editor and create a Third Person template project
  2. Create a Structure with a Text variable
  3. Create an Actor Component and create an array variable based off the Structure in the previous step. Make it Instance Editable.
  4. Open the ThirdPersonCharacter Blueprint
  5. Add the created Component to the ThirdPersonCharacter Blueprint
  6. Click on the Component. Under Default add Array elements
  7. In the Event Graph of ThirdPersonCharacter replicate the setup in the attached screenshot
  8. Play in Editor, press '1', and notice the output
  9. Go back the the Component in ThirdPersonCharacter and add another element to the Array.
  10. Play in Editor and press '1'

Results: New array element isn't printed

Expected: All array elements are printed

Have Comments or More Details?

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

3
Login to Vote

Fixed
ComponentTools
Affects Versions4.20.24.21
Target Fix4.22
Fix Commit5002698
Main Commit5002702
Release Commit5002698
CreatedSep 19, 2018
ResolvedFeb 14, 2019
UpdatedMar 4, 2019
View Jira Issue