Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
MrFlo666's avatar
MrFlo666
Explorer
5 years ago

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

  • 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..