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 Managerfor 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.
- Vision Pro device
- Unity 6
- PolySpatial 2.2.4
- visionOS 2.0
- Xcode 16.3
- Enterprise APIs for visionOS entitlements
Enterprise.licensefile issued from Apple
- Unity 2022.3.X or above
- 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.licensefile at the root of/Assetsdirectory. - Set
Project Settings-Player-Camera Usage Description - Check
Project Settings-XR Plug-in Management-visionOS section-Initialize XR on StartupandPlug-in Providers-Apple visionOS - Set
Mixed Realitymode inProject Settings-XR Plug-in Management-Apple visionOS
- Check
Project Settings-XR Plug-in Management-Android section-Initialize XR on StartupandPlug-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.
