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.
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.
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:
- On blueprint event graph, add a āGet All Actors of Classā (e.g., Pawn)
- Drag āOut Actorsā to a āFor Each Loopā.
- Add a āCustom Eventā
- 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)
- 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.
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.