Hello all. I'm very new to Unreal, but decently familiar with C++, so I've been following the FPS tutorial over in the docs (found here, in particular the step I'm struggling with.)
My compiler is not very happy with the line
saying that it cannot convert a UCapsuleComponent* to a USceneComponent*.
I'm running Unreal 4.23, and I know that this tutorial is out of date, but it's been working so far. Has Unreal changed the way this is handled? How can I attach a camera to a capsule component? Is there a way to convert it into a scene component?
I can't really find anything online to help me, so any help would be appreciated!
My current code, with the above line:
Spoiler
My compiler is not very happy with the line
Code:
FPSCameraComponent->SetupAttachment(GetCapsuleComponent());
I'm running Unreal 4.23, and I know that this tutorial is out of date, but it's been working so far. Has Unreal changed the way this is handled? How can I attach a camera to a capsule component? Is there a way to convert it into a scene component?
I can't really find anything online to help me, so any help would be appreciated!
My current code, with the above line:
Comment