try explicitly casting the type:
FPSCameraComponent->SetupAttachment(Cast<USceneComponent>(GetCapsuleComponent()));
if the cast fails, please try to #include both “USceneComponent.h” and “UCapsuleComponent.h”
does it work now?
try explicitly casting the type:
FPSCameraComponent->SetupAttachment(Cast<USceneComponent>(GetCapsuleComponent()));
if the cast fails, please try to #include both “USceneComponent.h” and “UCapsuleComponent.h”
does it work now?