No value will be returned by reference?

Did you try this? Declare your array as const TArray<type> &

Just stumbled on this (UE 5.3), and like ro0nik, I see the blue Note but the data is being passed to the event correctly.

image

Count me as another person having this issue in 5.3. I am passing an array. The array is not being recognized by the event and I am getting the dreaded No value will be returned blue bar.

:triumph:

Hey guys can anyone solve my issue with DMX materials ??

The issue is still there in 4.27.

But you can easly solve it by flagging ā€œpass by referenceā€

I had this issue in 5.2 with an interface. I had to disconnect any interfaces connections on the sending side, then delete the variables and connect the ā€˜send out connectionsā€™ before connecting the ā€˜send input connections.ā€™ This fixed it for me, but is certainly annoying to have such a random UI bug!

Issue persists in UE5.32.
My workaround was to refactor logic to avoid passing the array via the custom event.

Steps to repeat this problem:

  1. On blueprint event graph, add a ā€œGet All Actors of Classā€ (e.g., Pawn)
  2. Drag ā€œOut Actorsā€ to a ā€œFor Each Loopā€.
  3. Add a ā€œCustom Eventā€
  4. Drag ā€œArrayā€ from the ā€œFor Each Loopā€ onto the new ā€œCustom Eventā€ (this will add a new Input, which is an Array with greyed-out Pass-by-Reference)
  5. Click ā€œCompileā€ and see the ā€œNOTEā€ appear.

Even though when you set the array it auto sets pass-by-reference, set it back to a single, manually turn on pass-by-reference and it went away for me when I changed it back to Array.

1 Like

Yep still a thing. Setting it back to to single then to array again does work though.

Here in 5.0.3, it happens again when I want to added an array in custom event

It just happened to me too (5.3). Is there any workaround?

The message ā€œNo Value will be returned by referenceā€ indicates the array parameter is not marked as ā€œpass by reference.ā€ This means changes to the array in the event wonā€™t reflect back to the caller. To fix this, ensure the array is passed by reference in the function signature. Alternatively, process and return the modified array explicitly from the event node.

5.4 here, still persists.

For those trying to replicate, here is my case with event dispatcher:

I have a struct and an array of enums in that struct (type actually doesnā€™t matter) and Iā€™m calling the OnDamageResponse.

Event setup, basicly just an input with an array of enums.
Keep in mind that You cannot tick the ā€˜pass by referenceā€™ here, so I canā€™t even try.

If I pass a single enum (not an array) there is no error, but trying anyhow with the array keeps producing the Note with ā€˜No value will be returnedā€™:

Additionaliy, everything that listens for that particular event gets notes too, when binding.

All above work flawlessly though, exactly how I thought they would, so seems to be a matter of UI still.

The issue occurs because Blueprint events donā€™t support passing arrays by reference, leading to the ā€œNo value will be returnedā€ note. Instead, return the modified array explicitly or use a setter function to update it. This ensures safe handling without triggering warnings.