Take Screenshot from code
Is there a way to trigger the OS Screenshot (similar to the "Take picture" button or the "home menu + pull trigger" shortcut) from code? I'm using Unity and my guess is that it is not exposed through Meta's API, but maybe there is a way to launch the android process somehow?969Views3likes2CommentsQuest 2 screenshot in android apk made in Android studio
Hey, I have an issue with taking screenshots in an app that I made in Android Studio, I have tried several different permissions: WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE, CAMERA, CAPTURE_VIDEO_OUTPUT, MEDIA_CONTENT_CONTROL, READ_FRAME_BUFFER, I have also tried removing the FLAG_SECURE but no matter what I try inside the Quest 2 headset I get the message "The developer has disabled taking photos in this app."1.2KViews0likes1CommentTake 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.7KViews0likes1Comment