UE4 的 multiple inheritance with UClass 实现

trying to extend a class from two AClass to add some attributes and methods to it. but it compile error.

UCLASS classes can not have multiple inherited classes, except for interfaces.

So each UCLASS can only have one direct inherited class and as many interfaces (UINTERFACE) classes as you want.

https://wiki.unrealengine.com/Interfaces_in_C%2B%2B

猜你喜欢

转载自avi.iteye.com/blog/2358600