Custom C++ Class with multiple inheritance

You cannot do multiple inheritance from more than one UObject type, and components can only exist within actors. The following is allowed:



class UMyComponent : public UActorComponent, public ISomeNativeInterface
{}


This is NOT allowed:



class UMyComponent : public UActorComponent, public USomeOtherUObjectClass
{}


2 Likes