As I am very new to C++ dev in Unreal Engine, I am stuck with a normally simple task. I have a Character Pawn (“StealthCharacter”) made in C++ with some movement and I have a blueprint of some behaviour (“Detector”) that needs to be attached to it.
After some search, I tried to include it like this in the header:
class SOMEGAME_API AStealthCharacter : public ACharacter
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, Category="Detector")
TSubclassOf<UActorComponent> mainDetector;
...
}