An interface function that returns values ​​from classes that implement the interface

You can’t have an interface as an element of an array unless you use TScriptInterface

as mentioned in this thread

But you can in this place simplify it by having the TArray hold a UObject (a base class) in the interface

I made an example project that demonstrates this with a implementation:

Intface.zip (35.5 KB)

Just regenerate the UPROJECT file (right click and generate solution)