Set Members in Struct node doesn't work if the Struct is contained within an Array.
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
BP VR Project: TMap Based Inventory Causing Project/Engine/Game Freezing
Set Members In Struct node does not work
[BUG] Cannot set members in array of structs
Blueprint TMap 'Find' not returning values by reference
Cannot Add Values to Struct Blueprint
Set Members In Struct node does not work
Feature Request / Bug Report: Optionally Unique Structs
Head over to the existing Questions & Answers thread and let us know what's up.
50 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.6, 4.7 |
Target Fix | 4.16 |
Fix Commit | 3330306 |
---|---|
Main Commit | 2884111 |
Created | Dec 9, 2014 |
---|---|
Resolved | Mar 2, 2017 |
Updated | May 4, 2023 |