How to use GetComponentByClass / FindComponentByClass?

Just make sure it’s initialized before you run. Edit your blueprint in the editor, drag a CameraActor into the cameraActor property.