Sidescroller C++ - Camera UPROPERTY Missing

In my new C++ Sidescroller project, I wanted to talk to the Camera component in the PlayerController, but it didn’t exist.

When trying to drag it out as a getter in the Character BP it would display an error declaring this:

81722-error.jpg

By adding this line from the CameraBoom to the Camera did fix it, however is this intentional?

UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true"))

Was this line left out for any particular reason?


P.S. This video was the source of my initial confusion, as he has access to it in his demonstration.


(Pause the video to read his BP’s))

Hello,

I created a new Sidescroller C++ project and checked the code, and I saw the UPROPERTY there by default.

What version of the engine are you seeing this issue in? If you create a new Sidescroller code project and make no changes, do you see the UPROPERTY above the spring arm declaration in the character class?

Hey,

I created a project and it had some sort of “Build” error

, but when I opened it in Visual Studio it was still missing the UPROPERTY line.

Can you shed any light as to why im getting this build error as well?

I did have another project open and running at the time but apart from that its a standard install of 4.10.2

Also the line isn’t missing from the SPRING ARM its missing from the CAMERA COMPONENT

I took some time to look into your compiler error C3859, and found a couple of posts where users were experiencing the same issue, as well as offering potential fixes.

Have a look at the post linked below, and if that does not work feel free to browse through the other posts that are related to that error when you perform a google search for it.

https://social.msdn.microsoft.com/Forums/en-US/89ead60d-1cd2-4bca-bf71-78d81363040d/error-c3859-virtual-memory-range-for-pch-exceeded?forum=vcgeneral

Ahh, Thank you for your time, I will have a look into it.

It’s a bit overwhelming for me as i’m not much of a C++ Programmer.

However, have you determined if the missing UPROPERTY line was intentional, because it does seem odd that I couldn’t use the camera in the Blueprint.

Thanks for your help!