C++ code doesn't change properties in Blueprint

I am following the Basic FPS tutorial and got stuck on section 2.8 - Adding a First-Person Mesh to Your Character

At the end of the first section, I should have not been able to see the character mesh because of this:

GetMesh()->SetOwnerNoSee(true);

When I could still see the mesh, I went to the Blueprint editor and found ‘Owner No See’ was false with a little yellow arrow that said ‘Set to Default’. I tried changing other options in C++ with the same result: they don’t actually change, and I have to override them in the Unreal Blueprint window before they get applied. How do I fix it so I don’t have to do this?

Also, I tried compiling from VisualStudio and in the Unreal Engine and it produces the same results.

it depends on where in code you have this. If its in the constructor, I think you have to delete your character and drag him into the scene again, as the constructor is called when the object is just added to the scene. You can see this by putting UE_Log(LogTemp,Warning,TEXT(“Constructor Running”)); and see if the text appears.