Ok, I am having some major issues programming in C++ with the Engine for days now and I really would like an answer to this question. This is a simple USkeletalMesh variable I would like to add to my Character C++ class (so I can add it to the Blueprint deriving from this class). This is where I declare the variable:
FPSCharacter.h
UPROPERTY (VisibleDefaultsOnly, Category = Mesh)
USkeletalMeshComponent *handsMesh;
FPSCharacter.cpp
handsMesh = CreateDefaultSubobject <USkeletalMeshComponent>(TEXT("Our hands mesh"));
handsMesh->SetOnlyOwnerSee(true);
handsMesh->SetupAttachment(ourCameraComponent);
handsMesh->bCastDynamicShadow = false;
handsMesh->CastShadow = false;
GetMesh ()->SetOwnerNoSee(true);
The error I am getting is that none of the above function/attributes of the class belong to the class. That means the class definition is included, but the attributes and functions are not. How is this even possible?
Ok, the code compiles now (after absolutely no change) but nothing appears to happen in the Editor and PIE. Is there any reason for this?