Unreal Engine 4.7.1 Win 64 Development Editor
Reporting a bug and the workaround I have found for it so far, unless this was intended.
If you create a blueprint class that derives from a character class header that you created in C++, and add a StaticMeshComponent to the header, and properly construct it in the source like so:
In Header file
UPROPERTY(EditAnywhere, BlueprintReadWrite)
UStaticMeshComponent* ShieldComponent;
In source file
ShieldComponent = ObjectInitializer.CreateAbstractDefaultSubobject<UStaticMeshComponent>(this, TEXT("Shield"));
ShieldComponent->AttachParent = GetMesh();
Compiling the class will add the Static Mesh Component to the hierarchy. However the details panel will not be available. Going into the viewport and having the object selected will show the transform/scale/rotate tool for the object. The only way to get the details to display any information is to recreate the blueprint class and derive from the same header file again.
To make sure I followed the same steps I started by creating a new Character class called MyCharacter. I then made a blueprint based on MyCharacter. In code I added the lines that you posted above and then compiled. In the blueprint I noticed that the ShieldComponent was listed and my Details panel showed the following:
Clicking the arrow next to Shield Component then brought up the rest of the details panel options. Let me know if you’re seeing something similar or if you experience something else.
I recently updated to 4.7.2, and I can’t reproduce this issue. But before on 4.7.1 additional StaticMeshComponents after the initial one wouldn’t have details visible unless the blueprint was recreated.
It sounds as though updating to 4.7.2 solved the problem you were having. If you have any issue with the details of custom components not showing up in the future feel free to post back here and we will continue to investigate.
I solved this problem by observing the rule that sounds like a variable name must be identical to the text argument value. This applies to all component classes.