Description

Set Members in Struct node doesn't work if the Struct is contained within an Array.

Steps to Reproduce

1. Open QA-Game
2. Create a Blueprint Structure, name it bpStruct, & double-click to open it
3. Add 3 String Variables named ItemID, ItemName, & ItemLibrary
4. Compile & save
5. Back in the editor, Create an actor class Blueprint named bpStructTest & double-click to open it
6. In the Event Graph, create the blueprints in screenshot #1 or follow steps 7 - 20

7. Create a Variable named Array > Set the Variable Type to bpStruct
8. Compile & in the Details panel, add the Array Element by clicking the + sign under Default Value
9. Place a Get of the Array variable > Drag off and add an array Get node
10. Drag off and add a Break bpStruct node
11. Drag off of ItemID and add a Set Members in bpStruct node
12. Add a keypress event to trigger the Set Members node
13. Add a Print String to the end of the setup
14. Create a String type variable named NewVar
15. Compile & change the default value to NewVar
16. Add a Get of NewVar to the ItemName of the SetMembers node
17. Connect ItemID to ItemID & ItemLibrary to ItemLibrary
18. Connect the array Get node to the StructRef
19. Connect the ItemName to the Print String
20. Compile & save

21. Back in the editor, place the bpStructTest into the level
22. In the Details panel, change the Input to Player0
23. Play-In-Editor
24. Hit the F key to see the original value of ItemName print instead of the NewVar value

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

50
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.64.7
Target Fix4.16
Fix Commit3330306
Main Commit2884111
CreatedDec 9, 2014
ResolvedMar 2, 2017
UpdatedJul 11, 2018