How can I change Viewmode in game?

What error are you getting? There are a few caveats:

  • It won’t work if you are using forward rendering
  • I won’t work for things like volumetrics, or the UE4 SkySphere blueprint
  • If you want to match the colors, you’ll have to gamma correct the SceneTexture. You can do so by plugging the SceneTexture node into the Base Input of a Power Node, setting the expononent to .4545, then plugging the output of the power node to the material’s emissive color.