The parameter to your function is an object, but it should be a pointer. Change it so it takes a pointer to the camera component and change the inside of your function to use the pointer.
The parameter to your function is an object, but it should be a pointer. Change it so it takes a pointer to the camera component and change the inside of your function to use the pointer.