In editor, when Game View is toggled, the visibility of actors with AActor::bIsEditorOnlyActor set to true is toggled. This works correctly for non-Nanite static mesh actors but does not work for Nanite static mesh actors.
For non-Nanite static mesh actors, this is handled by this code in `FPrimitiveSceneProxy::IsShown`:
if (View->Family->EngineShowFlags.Game)
{
if (DrawInAnyEditMode)
{
return false;
}
}
The equivalent code does not seem to exist for Nanite static meshes though.