I am trying to implement a generic health system for a game. I created a C++ abstract super class that hold variables and method definitions. I want them to be accessible to the blueprint editor so they can be edited and implemented by BP classes inheriting them.
I created intermediate classes that inherit from this superclass as well as UE4 classes actor, character etc and they can access the variables in the superclass.
But the BP classess inheriting from the intermediate classes has no access to variables or methods.
I have exposed the variables with UPROPERTY(BlueprintReadWrite) and functions with UFUNCTION(BlueprintImpementableEvent). But they still don’t show up in editor.
The superclass is independent of UE4 and does not inherit from any class. I want to use it with different UE4 classes.
The code compiles fine. Is there anyway I can expose it to BP without the superclass inheriting from UE4 objects ( that will defeat its purpose).
I have heard of UINTERFACES but I am not sure if they will hold the variables required for the health system.