Description

You can add a pass-by-reference input variable to an Event Dispatcher, but it will will result in compile warnings, and changes to that input will not affect the value of the variable in the caller.

Steps to Reproduce
  1. Create a new Blueprint
  2. Add an Event Dispatcher
  3. Open the Event Dispatcher
  4. Add an input parameter to the Event Dispatcher function, and tick 'Pass-By-Reference'
  5. Go to the Event Graph (or any other graph) and add a call to the new Event Dispatcher.
  6. Wire up the execution pin into the call (e.g. to Event BeginPlay)
  7. Right-click on the input parameter and Promote to Variable
  8. Compile the Blueprint

Results: Warning: "No value will be returned by reference."

Expected: The editor should not allow pass-by-reference parameters to be added to Event Dispatchers

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-66742 in the post.

13
Login to Vote

Won't Fix
ComponentUE - Gameplay - Blueprint
Affects Versions4.204.214.22
CreatedNov 19, 2018
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue