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
I am not able to find world outliner how to enable it?
Hey, why do i get this when i snap two similar meshes together?
How can i modify the param name in EQS node
Lighting Turns Black in Play Mode
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
Bullet replication problem. The players sees each other but does not see the bullet
When I open UE4 4.24.3 it appears that. Does anyone know how to solve?
Head over to the existing Questions & Answers thread and let us know what's up.
51 |
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 |