Download

How to make interface which extends other interface ?

Hello guys,

I would like to ask if it is possible to make interface which is based on some other interface. I tried to do that, however there are some errors during compilation so I wonder if it is even possible.

Thank you :slight_smile:

Uh, now it compiled. It is also visible in BP so i think everything works ok. I have not tested functions yet.





#pragma once

#include "InteractiveInterface.h"
#include "SecondInterface.generated.h"

/**
*
*/
UINTERFACE()
class MYGAME_API USecondInterface : public UInteractiveInterface
{
	GENERATED_UINTERFACE_BODY()
};

class ISecondInterface
{
	GENERATED_IINTERFACE_BODY()
};