Add an output pin of type “array of that BP Struct from #1”.
Create a local variable of type “array of that BP Struct from #1” and put some nodes into place that perform the necessary work to fill that array. Plug it into the output pin at the end.
Compile the Function, switch back to Event Graph.
Drop the Function onto the Canvas*
*) With #6, it randomly works or does not work. With the sample project however, it seems to always not work for me.
This is on the Launcher version of 4.7.3 ( 4.7.3-2479750+++depot+UE4-Releases+4.7)
Thank you for the report. I was easily able to reproduce the error and I believe I know the cause. It doesn’t have anything to do with the struct, but it has to do with the Reroute node being used in combination with the array. If the Reroute node is removed from the function, the Output pin will appear again.
I’ve entered this as JIRA UE-12879 and our developers will be looking into it further. We will post back here with updates as we have them.
That explains why I wasn’t able to reproduce this issue at first, as I just hastily mashed together a sample and got frustrated that it actually worked.
For the one attached, I was aiming for a repro-case to be uploaded, so I wanted it to be kinda pretty.
I’ll work without the Reroute as a workaround for now, thanks!