How to attach a UCameraComponent to a capsule?

The issue is that it doesn’t know what a UCapsuleComponent is.

Add this to the CPP file:

#include “Components/CapsuleComponent.h”

3 Likes