Apple and Pico recently released a camera access feature for enterprise usage. This Unity plugin makes it easier for developers to use the feature on Vision Pro and Pico 4 Enterprise devices.
The Unity package solves two problems:
- The Apple Enterprise API does not provide a Unity plugin; it is designed for Swift development.
- Compatibility across multiple devices.
- Easy to use plugin. You don't need to write even one line of code to get camera images.
- Camera image can be obtained using the same script
Enterprise Camera Access Manager
for Vision Pro, Pico 4 Enterprise and Webcam in the Editor mode. - Just set a material on the manager script. The material will be updated with the camera image.
GetMainCameraTexture2D()
returns the camera image as Texture2D.
- Unity 2022.3.X
- Unity Pro license
Requirements for Vision Pro
- Vision Pro device
- visionOS 2.0 (Beta)
- Xcode 16.0 (Beta)
- Enterprise APIs for visionOS entitlements
Enterprise.license
file issued from Apple
Requirements for Pico 4
- Pico 4 Enterprise device
- Sign up for Pico testing program
- Authorized Package name
Clone this repository and open the project.
# Install openupm-cli
npm install -g openupm-cli
# Go to your unity project directory
cd YOUR_UNITY_PROJECT_DIR
# Install package: com.styly.webrequest-visualscripting-nodes
openupm add com.styly.enterprise-camera-access
- Locate
Enterprise.license
file at the root of/Assets
directory. - Set
Project Settings
-Player
-Camera Usage Description
- Check
Project Settings
-XR Plug-in Management
-visionOS section
-Initialize XR on Startup
andPlug-in Providers
-Apple visionOS
- Set
Mixed Reality
mode inProject Settings
-XR Plug-in Management
-Apple visionOS
- Check
Project Settings
-XR Plug-in Management
-Android section
-Initialize XR on Startup
andPlug-in Providers
-PICO
- Set authorized package name at
Project Settings
-Player
-Identification
-Package Name
- Set
Android 10.0 (API level 29)
or higher atProject Settings
-Minimum API Level
- PICO Unity Integration SDK will be automatically installed when you import Pico Samples.
Import samples from Package Manager.