Skip to main content
Participant
May 29, 2020

Take a screenshot

Hi,

I develop for Oculus Quest on Unity 2019.3.8f1.
I want to take a screenshot when my user push a button on the right controller.
To do the "screenshot" part, I use the following line :
ScreenCapture.CaptureScreenshot(Path.Combine(Application.persistentDataPath, "screenshot.jpg"));
This one work on Unity Editor, not on the Quest. I've put some debug so I'm sure this code is called. Just when I go in the right folder (with SideQuest), my file is not there.
Can someone help me ?
Thanks.

1 reply

New Participant
July 26, 2020
hello! - did you find a solution for this?

I used something similar for the Pico VR and it did indeed saved but I was only able to see the pictures from within the headset "library".

my issue was that the picture didnt really work.. it was all black..