Has anyone used the Spectator Screen yet?

The cat face was a Plane component that was already part of my pawn, attached to my existing camera that represents the VR HMD (since by default your head and hands will be invisible). It was placed behind the camera slightly, so it wouldn’t cover my view in-game.

Almost, you’ll need to:

  • add a SceneCapture2D component or actor somewhere (could be attached to pawn, doesn’t need to be. this will just be where the spectator cam is located)
  • make a new Render Target in your library
  • set the SceneCapture2D’s Render Target to that new Render Target
  • in a blueprint key press event, call Set Spectator Screen Mode (setting to Texture) AND Set Spectator Screen Texture (setting it to your library Render Target)

That should do it. You’ll also need to make sure your pawn has some kind of visual things attached to it so you’re actually visible.

The example in this post is using the Texture mode, which just shows one solid texture (the output of the SceneCapture2D) onto the monitor. The “256” example in the documentation is using TexturePlusEye mode, which is taking the mirrored headset output and overlaying another texture (the “256”) on top of it.