I made my own pawn class, which derives from default pawn. When I make a blueprint from that class and attach a camera my mesh is not visible as long as I control the pawn. As soon as I eject from the pawn the mesh is visible.
When I posses the pawn again it is invisible, again ?!?
It seems that the camera of the default pawn renders everything except the meshes of the the default pawn it belongs to.
If I put an instance of the blueprint in the editor and select it, I get the small preview window on the right bottom of the camera in which the mesh is clearly visible.
Any ideas why the mesh vanishes?
In your pawn class, select your MeshComponent and check the “Owner No See” flag. It’s hidden deep down in the Rendering section - you’ll have to expand the Rendering section to find it. DefaultPawn sets “Owner No See” to TRUE by default, which is why you can’t see your mesh when you are the owner.
This is the default setting because of what the Default Pawn is suppose to be used for. The Default Pawn is to represent your view in the viewport during PIE as it would be in the editor. If you had derived from Pawn instead of Default Pawn, this would not of been the case.