Screenshots not working in simulator/device

FYI this is fully immersive.
Using Texture2D objs = ScreenCapture.CaptureScreenshotAsTexture(); to capture a screenshot while in game.
Works fine in editor, but results in a black blank image on device/simulator.
Is there a different way we should be taking screenshots in VR?

Is this for a runtime screenshot type feature or just capturing an image of your app running?

During user runtime. Allow the user to trigger screenshots from within app for debugging purposes.

@DanMillerU3D Is there a performant way of doing this in VR?

If you can file a bug for the ScreenCapture API not working that would be good for us to track.

The only other option that comes to mind is trying to use a render texture camera setup and saving off a frame from there. Iā€™m not sure how performant that would be.

1 Like