How to define an interface function that can return a value?

When I define an interface function that has a return value I cannot create a triggering event for its implementation.
Instead it appears a regular function in my event graph.
I understand the logic behind it because the function communication is implemented using message passing and not direct function calls.
The problem is that this function is never called if I call it from another blueprint.

So the question is When I define an interface function that has a return value I cannot create a triggering event for its implementation.
Instead it appears a regular function in my event graph.
I understand the logic behind it because the function communication is implemented using message passing and not direct function calls.
The problem is that this function is never called if I call it from another blueprint.

So the question is How to define an interface function that can return a value?

You need to Iiplement the interface on the BP your defining the action on. BP → Class Settings → Details → Interfaces → Add the interface BP. Then, you will have access to it.

This is an old question… but since this wasn’t immediately obvious to me either…

You can edit the implementation of an interface function with a return value, by double clicking the function in the editor panel, just like regular functions.

It will show up there when the interface is implemented by adding it to the class settings details panel.

6 Likes