I saw this statement in https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/Objects/index.html
I then created a C++ project from the "block template" project. In my PlayerController header file, I made something like this:
The following statement does not have access specifiers (private/protected/public).
But based on the documentation, the
I thought that member variable should be
Could you explain why the macro and the compiler does not sync?
asked Jun 09 '16 at 07:20 AM in C++ Programming
The previous macro in place of GENERATED_BODY was GENERATED_UCLASS_BODY(). This macro did give public access to variables by default. It appears that the documentation was not updated when the switch to GENERATED_BODY was made. Thank you for pointing this out, I have entered a ticket to update the documentation. As for the code, GENERATED_BODY() has private access by default, so you would need to add
answered Jun 09 '16 at 01:52 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here