Array of Interfaces cannot be returned

I have an interface that requires an array of its own interfaces as output.

I have that array of interface as a local variable in the implementation method.

UE4 won’t let me connect them, and gives a bogus CAST node.

The implementation (forced and automated in UE4.9) is giving me a return that says “array of interface” but shows blue, as array of objects, instead of yellow as “array of interfaces”.

workaround: none, forced to output array of actors and cast later.

56288-bug1.png

56289-bug2.png

56290-bug3.png

Hi ,

The official 4.9 release just came out. Could you verify that this is still an issue for you in that build?

Hi TJ

just tested with 4.9 exact same problem.

An interface with a function returning a list of itself will not be implementable.

It’s silly and needs to be fixed.

56549-b1.png

56550-b2.png

56561-b3.png

56562-b4.png

Thanks for the additional info. I was able to reproduce this and I’ve logged it as JIRA UE-20606 in our tracking software. Our developers will be investigating it further and we will post back here with updates as we have them.

As for a workaround, I noticed in 4.9 that if everything is saved and the editor is restarted, the pin will then show the correct type.

Cheers,

TJ

Ok thanks for the workaround, I hadn’t figured out that one.