Description

Possibly one of the lesser know features of Blueprints is that we allow the connection of an array of actors to the "self" pin of a function (see pic). This is essentially a shorthand for writing an explicit for loop. The underlying bytecode will correctly loop over each element and call the function using the current actor as the self pin for the node.

However, a licensee noticed that after dragging a connection from this array, the context menu did not list any of its functions as options. Considering that we allow this implicit conversion in the first place, it follows that the context menu should list the callable functions as well.

[Link Removed]

Steps to Reproduce
  1. Create a new BP in the editor (eg: TestBP).
  2. Open the editor for TestBP.
  3. Add a new variable that has an array of TestBP.
  4. Add a new empty function (eg: TestFunction).
  5. In the event graph, add a getter for the array variable.
  6. Drag a connection from the getter's pin.
  7. Notice that TestFunction isn't listed.

 

Have Comments or More Details?

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

0
Login to Vote

Duplicate
ComponentUE - Gameplay - Blueprint
Affects Versions5.0
Target Fix5.2
CreatedMay 31, 2022
ResolvedSep 21, 2022
UpdatedOct 17, 2022
View Jira Issue