Adding a mesh component in c++, then assigning the mesh manually in BP - tips?

Do you create the component in the constructor as a default subobject?
You need to assign it to a property declared as follows:


UPROPERTY(VisibleAnywhere, BlueprintReadOnly) 
UStaticMeshComponent* MeshComp;

It should then be editable.