I’ve been looking around, seeing the source code of the templates and googling my issue, but I can’t figure out how to do an important and simple operation. I just created an ActorComponent, and added the dependncy to my ACharacter class (ThirdPerson C++ Template Character Class), after looking at the components added, they use a simple “SetupComponent->(RootComponent)” structure which apparently my actor component doesnt posses. I tried creating a DefaultSubObject and just adding it as a member but it doesn’t seem to be attached. Here is my code without any attachment logic…
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Combat)
LockOnComponent = CreateDefaultSubobject<UCameraLockOnComponent>(TEXT(“LockOnComponent”));
How do I properly set this component up so that the character class can call functions in my component?