Hello bois
I’ve been trying to create a weapon component deriving from UActorComponent (and a custom interface). here’s the code I’m using in the constructor of the actor owning it:
DefaultWpn = CreateDefaultSubobject<UDefaultWeaponComponent>("Big gun");
AddOwnedComponent(DefaultWpn);
DefaultWpn is an instance variable of type UDefaultWeaponComponent*. Here’t the “but”, when I run the game, the component is not visible in the component list of the actor, nor can I use its methods. Am I doing something wrong?
Yours