[Bug Report] Add to Array doesn't work through Custom Event
I'm not sure if this is a bug or even intentional (I hope not though).
I'm trying to re-use a large piece of code multiple times each time with different inputs and thought I could do that with a Custom Event, however adding to an array, which is what I need, doesn't seem to work correctly..
As you can see the Custom Event should take in two variables. The first input is "CustomExtends" and works without a problem but the second one "AbsoluteExtends" which is an Array of vectors doesn't seem to work. (the right picture shows the Custom Event, I have not connected the Absolute Extends to the add node because doesn't work)..
Apparently it's not possible to add new elements to that Array when going through the Custom Event.
I tried and found it possible when "setting" the Array at the beginning of the custom event but this would defy the whole purpose of using the CustomEvent in the first place..
Thanks a lot for your answer,
What appears to be happening is the custom event is receiving a copy of the array data rather than a pointer to the array itself. This behavior has been reported here: https://issues.unrealengine.com/issue/UE-37202 . As you pointed out, using the array itself in place of the event node's input pin will update the array as expected. Another workaround would be to create a function in place of a custom event which will update the passed in array directly from the function input node pin.
answered Oct 12 '16 at 01:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here