Blueprint: http://i.imgur.com/kZ3k0g5.png
console log
LogBlueprintUserMessages: [Untitled_C_0] 0
LogBlueprintUserMessages: [Untitled_C_0] 0
LogBlueprintUserMessages: [Untitled_C_0] 2
LogBlueprintUserMessages: [Untitled_C_0] 10
Expected result:
LogBlueprintUserMessages: [Untitled_C_0] 0
LogBlueprintUserMessages: [Untitled_C_0] 5
LogBlueprintUserMessages: [Untitled_C_0] 2
LogBlueprintUserMessages: [Untitled_C_0] 10
Hello Kauppaneuvos,
When I tested a similar blueprint on my end everything appeared to be working as intended. I have a few questions for you that will help narrow down what issue it is that you are experiencing.
Quick questions:
- Can you reproduce this issue in a clean project?
- If so, could you provide a detailed list of steps to reproduce this issue on our end?
- If set the members in the struct by splitting the pins of the “Set members in splayer” node do you still have this issue?
Hello Kauppaneuvos,
We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.
Thank you.
Hi, issue still exists in clean projects.
Workflow picture: http://i.imgur.com/yLGdxzZ.png
Steps:
- Create struct with boolean property
- Make a blueprint and add array-variable that holds your struct.
- Add 3 identical structs to array (all with false values)
- Make a function that uses “set members” function to change boolean variable in struct and use it to your array.
- Use Set Array Elem function to update your array
- Print out bools in all array items.
Expected result: changed struct contains bool with true value
Actual result: all structs contains false value.
Here is a workaround for issue http://i.imgur.com/CjqZrvR.png . You have to use local variable to store data and then edit that local variable and use it in Set Array element.
After looking over the steps provided I was able to do a bit more digging and find that this is a known issue (UE-6451) that has been 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