When creating a struct with the “Make” node in Blueprints the created struct does not have the default values when the variable is deactivated in the “Pin Options”.
- Create a Struct “Test” with:
“Value1” - Integer - Default Value: -1
“Value2” - Integer - Default Value: -1
- Create a “Make Test” node
- Deactivate “Value2” in “Pin Options”
- You see “Value1” is set to -1 in Textedit field
- Run the BP you will get a struct with:
Value1: -1 → perfect
Value2: 0 → wrong
Tested with: UE 4.9.1 Launcher Version
I was able to reproduce this issue on our end. I have written up a report ( UE-21642) and I have submitted to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.
Make it a great day
Ugh, I think I run into this Issue right now. Whats the State of this Bug?
I have an array of Structs, each struct containing Several Integers. If I make one integer for the Struct and set array elem it seem to reset every other integer of the struct.
Since set members in struct is also bugged for arrays I wonder if there’s currently any proper way to set values for Structarrays.
I went ahead and double checked on this issue for you. It appears as though this issues status has not yet been updated to fixed. However, I will be sure to bump up the community interest on the report. I hope that this information helps.
make it a great day