Inheritance between multiple Interfaces inside an Interface

Hello!

So I’m porting stuff from C# into C++ with Unreal and I have some Interface inheritance to get more complexity between layers of interfaces. I have an Interface_ClassA, Interface_ClassB and an Interface_ClassC. But when I try to get both A and B into C, compiling goes brrr.

So I wanted to know if there is by any chance a way to get this kind of complexity with interfaces in Unreal cuz the real issue I think is the UObject inheritance between UInterface classes because when multiple Interface classes are inherited in a regular class this doesn’t happen.

You’re exactly right, the UInterface part is only going to allow one parent UInterface type. The only time you’d be able to combine multiple interfaces into a single API is with a UClass.

1 Like

Uhh yeah personally I’d avoid “interface implementing interface” if possible. Interface Inception sounds like a recipe for confusion. :neutral_face:

A class implementing multiple interfaces is perfectly straightforward though. :+1:

1 Like

Gotcha Mag! I’ll adapt to this new format in that case! Thanks!

Yeah Shmoopy, I totally agree! Think that I’ll take this constraint as a chance to organize it more straightforward as you say regarding the architecture. Makes more sense in some way!

1 Like