Skip to content

This is a sample project for the Unity Android plugin Meta Quest Screenshot Loader, which retrieves the latest screenshot images from Meta Quest.

Notifications You must be signed in to change notification settings

t-34400/MetaQuestScreenShotLoaderSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Project for Meta Quest Screenshot Loader

This is a sample project for the Unity Android plugin Meta Quest Screenshot Loader, which retrieves the latest screenshot images from Meta Quest.

Environment

  • Meta Quest Pro
  • Unity Editor 2022.3.26f

Installation

  1. Clone the project using the following command:
git clone --recurse-submodules https://github.com/t-34400/MetaQuestScreenShotLoaderSample.git
  1. Select Add > Add project from disk from the Projects tab in Unity Hub, and open the cloned directory.
  2. Click on the added project to launch the editor.
  3. In the editor, open Assets/Scenes/SampleScene in the Project window.
  4. Add the ScreenShotLoader component to the Views/Scene/LoadScreenShotCanvas/Controllers object in the scene and configure it as shown in the image below: alt text
  5. From the menu bar, select File > Build Settings, then choose Android in the window and press the Switch Platform button.
  6. From the menu bar, select Edit > Project Settings, then open Meta XR in the window and select the Fix All and Apply All buttons if available.
  7. Build the project.

How to Use the Scene

  1. If the app does not have storage access permission, the Request Permission button will be displayed. Press this button to prompt a dialog asking for permission.
  2. Once storage access permission is granted, the Request Permission button will disappear and the Load ScreenShot button will appear. Press this button to read the latest screenshot and set it to the Raw Image.

About

This is a sample project for the Unity Android plugin Meta Quest Screenshot Loader, which retrieves the latest screenshot images from Meta Quest.

Resources

Stars

Watchers

Forks

Packages

No packages published