### PICO Unity Integration SDK - Quick Start Guide Steps Source: https://developer-cn.picoxr.com/document/unity/hardware-and-software-requirements This outlines the essential steps for getting started with the PICO Unity Integration SDK. It covers account creation, environment setup, SDK import, project configuration, scene creation, and building/running the application. ```APIDOC Quick Start Guide Steps: 1. **Create Developer Account, Organization, and Application:** - Register on the PICO Developer Platform. - Create an organization and a new application to manage your project. 2. **Configure Development Environment:** - Ensure you have Unity installed with the required modules (e.g., Android Build Support). - Set up Android SDK and NDK if necessary. 3. **Import SDK:** - Download the PICO Unity Integration SDK package. - Import the package into your Unity project via `Assets > Import Package > Custom Package`. 4. **Complete Project Configuration:** - Configure Player Settings in Unity (e.g., target architecture, minimum API level). - Set up necessary PICO SDK configurations within the Unity editor. 5. **Create an XR Scene:** - Set up your Unity scene for XR development. - Add PICO-specific components (e.g., PXR_Manager, Camera Rig) to your scene. 6. **Build and Run Scene:** - Build your Unity project for the target PICO device. - Deploy and run the application on your PICO headset. ``` -------------------------------- ### PICO Unity Integration SDK - Quick Start Guide Source: https://developer-cn.picoxr.com/document/unity/securemr-architecture A step-by-step guide for new developers to get started with the PICO Unity Integration SDK. It covers account creation, environment setup, SDK import, project configuration, creating an XR scene, and running the scene. ```APIDOC Quick Start Steps: 1. Create Developer Account, Organization, and Application 2. Configure Development Environment 3. Import SDK 4. Complete Project Configuration 5. Create an XR Scene 6. Build and Run Scene ``` -------------------------------- ### PICO Unity Integration SDK - Getting Started Source: https://developer-cn.picoxr.com/document/unity/securemr-api-overview This guide covers the initial steps for setting up the PICO Unity Integration SDK, including creating a developer account, configuring the development environment, and importing the SDK into your Unity project. ```markdown 1. Create a developer account, organization, and application. 2. Configure the development environment. 3. Import the SDK. 4. Complete project configuration. 5. Create an XR scene. 6. Build and run the scene. ``` -------------------------------- ### PICO Unity Integration SDK - Getting Started Examples Source: https://developer-cn.picoxr.com/document/unity/spatial-mesh Provides links and descriptions for various introductory examples included with the PICO Unity Integration SDK, covering core functionalities. -------------------------------- ### PICO Unity Integration SDK - Getting Started Source: https://developer-cn.picoxr.com/document/unity/securemr-overview Guides users through the initial steps of setting up the PICO Unity Integration SDK, including creating a developer account, configuring the development environment, importing the SDK, and setting up an XR scene. ```Unity 1. Create a developer account, organization, and application 2. Configure the development environment 3. Import the SDK 4. Complete project configuration 5. Create an XR scene 6. Build and run the scene ``` -------------------------------- ### PICO Unity Integration SDK - Getting Started Source: https://developer-cn.picoxr.com/document/unity/spatial-anchors-demo This guide covers the initial steps for setting up the PICO Unity Integration SDK, including creating a developer account, configuring the development environment, and importing the SDK into your Unity project. ```markdown 1. Create a developer account, organization, and application. 2. Configure the development environment. 3. Import the SDK. 4. Complete project configuration. 5. Create an XR scene. 6. Build and run the scene. ``` -------------------------------- ### PICO XR Development - Getting Started Source: https://developer-cn.picoxr.com/document/unity/pdc-troubleshooting A step-by-step guide for new developers to set up their environment and create their first XR application using the PICO Unity Integration SDK. ```APIDOC Getting Started Tutorial: 1. Create a developer account, organization, and application. 2. Configure the development environment. 3. Import the SDK. 4. Complete project configuration. 5. Create an XR scene. 6. Build and run the scene. ``` -------------------------------- ### PICO Unity Integration SDK - Getting Started Source: https://developer-cn.picoxr.com/document/unity/about-pico-devices This guide covers the initial steps for setting up the PICO Unity Integration SDK, including creating a developer account, configuring the development environment, and importing the SDK into your Unity project. ```markdown 1. Create a developer account, organization, and application. 2. Configure the development environment. 3. Import the SDK. 4. Complete project configuration. 5. Create an XR scene. 6. Build and run the scene. ``` -------------------------------- ### PICO Unity Integration SDK - Getting Started Source: https://developer-cn.picoxr.com/document/unity/space-calibration This guide covers the initial steps for setting up the PICO Unity Integration SDK, including creating a developer account, configuring the development environment, and importing the SDK into your Unity project. ```markdown 1. Create a developer account, organization, and application. 2. Configure the development environment. 3. Import the SDK. 4. Complete project configuration. 5. Create an XR scene. 6. Build and run the scene. ``` -------------------------------- ### PICO Unity Integration SDK - Getting Started Source: https://developer-cn.picoxr.com/document/unity/face-tracking This guide covers the initial steps for setting up the PICO Unity Integration SDK, including creating a developer account, configuring the development environment, and importing the SDK into your Unity project. ```markdown 1. Create a developer account, organization, and application. 2. Configure the development environment. 3. Import the SDK. 4. Complete project configuration. 5. Create an XR scene. 6. Build and run the scene. ``` -------------------------------- ### PICO Unity Integration SDK - Setup Guide Source: https://developer-cn.picoxr.com/document/unity/ergonomics-and-limitations Provides a step-by-step guide for setting up the PICO Unity Integration SDK, from creating a developer account to running a scene. ```APIDOC Setup Guide: 1. Create Developer Account, Organization, and Application. 2. Configure Development Environment. 3. Import SDK. 4. Complete Project Configuration. 5. Create an XR Scene. 6. Build and Run Scene. ``` -------------------------------- ### PICO XR Interaction Setup Guide Source: https://developer-cn.picoxr.com/document/unity/enable-interactions-between-hands-and-3d-objects-using-xr-interaction-toolkit Step-by-step guide for setting up XR interactions with hands and 3D objects using the XR Interaction Toolkit on PICO devices. Covers installation of XR Hands package, importing examples, setting default input actions, opening the demo scene, and enabling hand tracking. ```unity // Step 1: Install XR Hands package and import Hand Visualizer example // Step 2: Import XR Interaction Toolkit example project // Step 3: Set default input actions // Step 4: Open HandsDemoScene // Step 5: Enable hand tracking for the application and PICO device ``` -------------------------------- ### Legacy SDK - Quick Start Source: https://developer-cn.picoxr.com/document/unity/spatial-mesh References the quick start guide for a legacy Unity SDK. -------------------------------- ### SecureMR Quick Start Guide Source: https://developer-cn.picoxr.com/document/unity/securemr-quickstart A guide to implementing SecureMR functionalities within PICO applications. It covers environment requirements, enabling SecureMR capabilities, configuring video passthrough, and implementing SecureMR features. ```APIDOC SecureMR Quick Start Guide: Environment Requirements: - PICO Device Model: PICO 4 Ultra series - PICO Device System Version: 5.13.0 and above Operation Steps: Step 1: Enable SecureMR Capability - In the PXR_Manager (Script) panel, check the SecureMR checkbox to enable system-level SecureMR capabilities for the application. Step 2: Configure Video Passthrough Functionality - Video Passthrough technology allows users to view the real-world environment through the headset's cameras. Configure this feature by referring to the documentation at https://developer-cn.picoxr.com/document/unity/seethrough. Step 3: Implement SecureMR Related Features - Utilize SecureMR functionalities within the application to implement typical user experiences, such as displaying glTF models or using them to show video passthrough. Refer to "SecureMR Scene Teaching" for details: https://developer-cn.picoxr.com/document/unity/securemr-use-cases ``` -------------------------------- ### RenderDoc for PICO Setup and Usage Guide Source: https://developer-cn.picoxr.com/document/unity/renderdoc-for-pico This section outlines the step-by-step process for setting up and using RenderDoc for PICO, from downloading and installing the tool to capturing and debugging frames. ```APIDOC RenderDoc for PICO Setup and Usage: 1. Download and Install RenderDoc for PICO: - Refer to the 'First Step: Download and Install RenderDoc for PICO' section for instructions. 2. Launch RenderDoc for PICO: - Follow the steps in 'Second Step: Launch RenderDoc for PICO'. 3. Connect PICO Device: - Establish a connection between your PICO device and RenderDoc for PICO as described in 'Third Step: Connect PICO Device with RenderDoc for PICO'. 4. Launch Target APK Activity: - Start the Activity within your target APK file by following 'Fourth Step: Launch Target APK File Activity'. 5. Capture Frames: - Capture graphics frames using the 'Capture Frames' functionality, detailed in 'Fifth Step: Capture Frames'. 6. Save Frame File (Optional): - Learn how to save frame files in 'Sixth Step: (Optional) Save Frame File'. 7. Load Frame File: - Load captured frame files for analysis as explained in 'Seventh Step: Load Frame File'. 8. Debug Frame File: - Debug the loaded frame files using the features described in 'Eighth Step: Debug Frame File'. ``` -------------------------------- ### PICO Unity Integration SDK - Example Projects Source: https://developer-cn.picoxr.com/document/unity/hardware-and-software-requirements This section lists various example projects available with the PICO Unity Integration SDK. These examples demonstrate the implementation of different features, from basic setup to advanced XR interactions and platform services. ```APIDOC Example Projects: - **Getting Started Example:** A basic project demonstrating the fundamental setup and usage of the SDK. - **Motion Tracking Example:** Showcases the implementation of motion tracking for headset and controllers. - **Interaction Example:** Demonstrates various interaction techniques using the Interaction Suite. - **Spatial Audio Example:** Illustrates the use of spatial audio for immersive sound design. - **Mixed Reality Example:** Provides examples of mixed reality experiences using video passthrough and spatial anchors. - **Cartoon World:** A sample scene with a stylized art direction. - **Space Arena:** An example showcasing a combat or action-oriented VR experience. - **Mini War:** Another example of a game or simulation with combat elements. - **Human Body Tracking Example:** Demonstrates tracking of human body movements. - **Adaptive Resolution Example:** Showcases the implementation of dynamic resolution scaling. - **Platform Services Example:** Demonstrates the integration of various PICO platform services. - **Platform Services Simple Example:** A streamlined example of using platform services. - **Account & Friends Example:** Illustrates user account management and friend system integration. - **Real-time Voice Example:** Demonstrates real-time voice communication features. - **Room & Matching Example:** Shows how to implement multiplayer room creation and matchmaking. - **Leaderboard Example:** Demonstrates the implementation of leaderboards. - **Achievement Example:** Illustrates the system for awarding and tracking achievements. - **Challenge Example:** Showcases the implementation of in-game challenges. - **In-App Purchase (IAP) Example:** Demonstrates how to integrate in-app purchases. - **Downloadable Content (DLC) Example:** Illustrates the implementation of DLC. - **Subscription Example:** Demonstrates subscription models. - **Motion Data Authorization Example:** Shows how to handle motion data permissions. - **High-Light Moment Example:** Example for capturing and sharing highlights. - **Voice to Text Example:** Demonstrates the voice-to-text functionality. ``` -------------------------------- ### PICO Unity Integration SDK Import Guide Source: https://developer-cn.picoxr.com/document/unity/import-the-sdk Steps to import the PICO Unity Integration SDK into your Unity project. This guide covers the initial setup and subsequent operations required for integrating PICO XR functionalities. ```markdown [第一步:创建项目](https://developer-cn.pico-xr.com/document/unity/import-the-sdk/#7c0d548f "第一步:创建项目") [第二步:导入 PICO Unity Integration SDK](https://developer-cn.pico-xr.com/document/unity/import-the-sdk/#6ab8928c "第二步:导入 PICO Unity Integration SDK") [后续操作](https://developer-cn.picoxr.com/document/unity/import-the-sdk/#43e2af46 "后续操作") ``` -------------------------------- ### PICO XR Development Overview Source: https://developer-cn.picoxr.com/document/unity/securemr-overview This section provides an overview of PICO XR development, including environment setup, getting started with Unity SecureMR applications, development workflows, and optimization tips. ```apidoc PICO SecureMR Overview: - Environment Requirements: Details the necessary setup for development. - Getting Started: Guides on creating your first Unity SecureMR application. - Development Workflow: Outlines the steps involved in the development process. - Inspiration: Provides examples and best practices. - Optimization: Tips for improving SecureMR application performance. - Troubleshooting: Links to the troubleshooting guide. Reference: https://developer-cn.picoxr.com/document/unity/securemr-overview/ ``` -------------------------------- ### Download Streaming Service Guide Source: https://developer-cn.picoxr.com/document/unity/download-streaming-service Instructions on how to download and install the PICO Streaming Service, which is essential for monitoring device performance data and using the PICO Unity Live Preview Plugin. ```en Download Streaming Service With the streaming service, you can monitor PICO device performance data. If you are using the Windows operating system, you can also use the PICO Unity Live Preview Plugin to preview Unity projects in real-time. Important Notes: * The latest version of the streaming service (2.2.1.9) must be used with the latest version of the Live Preview Plugin and is not backward compatible. * If you have upgraded "PICO Connect" to version 10.3.9, you must upgrade the streaming service to the latest version 2.2.1.9, otherwise the streaming-related functions will not be available. Operation Steps: 1. Connect the PC and PICO device using a USB data cable. 2. Open the PDC tool. 3. From the left navigation bar, select Download Center. 4. On the Toolkit page, click the Download button to download the streaming service. 5. After the download is complete, follow the on-screen prompts to complete the installation process. ``` -------------------------------- ### PICO Unity Integration SDK - Example Projects Source: https://developer-cn.picoxr.com/document/unity/securemr-architecture Lists the example projects available for the PICO Unity Integration SDK, demonstrating various features and functionalities such as basic XR setup, motion tracking, interactions, spatial audio, and mixed reality. ```APIDOC Example Projects: - Getting Started Example - Motion Tracking Example - Interaction Example - Spatial Audio Example - Mixed Reality Example - Cartoon World - Space Arena - Mini War - Body Tracking Example - Adaptive Resolution Example - Platform Services Example - Platform Services Simple Example - Account & Friends Example - Real-time Voice Example - Room & Matching Example - Leaderboard Example - Achievement Example - Challenge Example - In-App Purchase (IAP) Example - Downloadable Content (DLC) Example - Subscription Example - Motion Data Authorization Example - High-light Moments Example - Voice-to-Text Example ``` -------------------------------- ### PICO Unity Integration SDK - Examples Source: https://developer-cn.picoxr.com/document/unity/interaction A collection of example projects demonstrating various features of the PICO Unity Integration SDK, including basic setup, motion tracking, interaction, spatial audio, mixed reality, and platform services. ```APIDOC Example Projects: Getting Started Example: - Basic SDK integration and setup. Motion Tracking Example: - Demonstrates motion tracking capabilities. Interaction Example: - Showcases various interaction methods. Spatial Audio Example: - Illustrates spatial audio implementation. Mixed Reality Example: - Demonstrates mixed reality features. Cartoon World: - Example scene with a cartoon aesthetic. Space Arena: - Example scene with a space combat theme. Mini War: - Example scene with a miniature warfare theme. Body Tracking Example: - Demonstrates full body tracking. Adaptive Resolution Example: - Showcases adaptive resolution implementation. Platform Services Example: - Basic usage of platform services. Platform Services Simple Example: - Minimal example of platform services. Account & Friends Example: - Demonstrates account and friend functionalities. Real-Time Voice Example: - Example of real-time voice communication. Room & Matching Example: - Demonstrates room creation and matching. Leaderboard Example: - Showcases leaderboard implementation. Achievement Example: - Demonstrates achievement system usage. Challenge Example: - Example of challenge features. In-App Purchase (IAP) Example: - Demonstrates IAP functionality. Downloadable Content (DLC) Example: - Example of DLC implementation. Subscription Example: - Demonstrates subscription features. Motion Data Authorization Example: - Example of motion data authorization. High Light Moment Example: - Showcases high light moment features. Voice to Text Example: - Demonstrates voice to text conversion. ``` -------------------------------- ### PICO Unity Integration SDK - Creating Your First Unity SecureMR App Source: https://developer-cn.picoxr.com/document/unity/securemr-overview Guides users on creating their first Unity SecureMR application by following the step-by-step instructions in the 'Quick Start' guide after understanding the basics of PICO SecureMR. ```Unity Creating Your First Unity SecureMR App After understanding the basics of PICO SecureMR, refer to the "Quick Start" guide for step-by-step instructions to create your first Unity SecureMR application. ``` -------------------------------- ### PICO XR Unity Initialization Guide Source: https://developer-cn.picoxr.com/document/unity/initialization This section details the initialization process for the PICO XR game module in Unity. It covers prerequisites, step-by-step instructions, network event handling, and important considerations for a smooth setup. It also links to API references for further details. ```unity https://developer-cn.picoxr.com/document/unity/initialization/ ``` -------------------------------- ### Unity Application Spacewarp Setup Source: https://developer-cn.picoxr.com/document/unity/application-spacewarp Guides for setting up Application Spacewarp in Unity, including enabling URP, replacing shaders, setting the graphics interface to Vulkan, enabling AppSW, and verifying its status. ```Unity Third Step: Enable URP Fourth Step: Replace Shader Fifth Step: Set Graphics Interface to Vulkan Sixth Step: Enable AppSW for the application Seventh Step: Confirm AppSW Enable Status Composition Layer AppSW ``` -------------------------------- ### PICO XR Development Environment Setup Source: https://developer-cn.picoxr.com/document/unity/set-up-the-development-environment Guides users through setting up their development environment for PICO XR, including enabling developer mode on the device, logging into a PICO account, and installing the Unity editor. ```zh-CN 第一步:为设备端开启 “开发者” 模式 第二步:登录你的 PICO 账号 第三步:安装 Unity 编辑器 后续操作 ``` -------------------------------- ### PICO XR Portal - Samples Module Source: https://developer-cn.picoxr.com/document/unity/pico-xr-portal The Samples module in the PICO XR Portal introduces example projects provided by the SDK. Developers can find detailed introductory documentation for each sample on the PICO Developer Platform by clicking 'Documentation', or access the sample's GitHub repository by clicking 'GitHub'. ```APIDOC PICO XR Portal - Samples Module: - Introduces example projects provided by the SDK. - Click 'Documentation' to be directed to the detailed introduction of the sample on the PICO Developer Platform. - Click 'GitHub' to be directed to the sample's GitHub repository. ``` -------------------------------- ### Get Challenge Entries Example Source: https://developer-cn.picoxr.com/document/unity/challenges Example C# code for retrieving leaderboard entries for a challenge using ChallengesService.GetEntries. ```C# var task = ChallengesService.GetEntries(challengeID, LeaderboardFilterType.None, LeaderboardStartAt.Top, 0, 5).OnComplete(OnGetEntriesComplete); void OnGetEntriesComplete(Message msg) { if (msg.IsError) { Debug.Log($"OnGetEntriesComplete error: {msg.GetError().Code}, {msg.GetError().Message}"); return; } // Process the response data (ChallengeEntryList) } ``` -------------------------------- ### PICO Unity Integration SDK - Challenges Demo Setup Source: https://developer-cn.picoxr.com/document/unity/challenge-demo Instructions on how to set up and use the Challenges Demo provided in the PICO GitHub repository. This includes opening the demo in Unity and understanding the UI components for interacting with the Challenges Service API. ```Unity 1. Obtain the Challenges Demo from the PICO GitHub repository: [https://github.com/Pico-Developer/PlatformSample-Unity/tree/main/Assets/Samples/Challenges] 2. Open the project in the Unity editor. 3. Navigate the UI elements: - Number 1: Configure pagination (pageIndex, pageSize). - Number 2 (ChallengeOption): Set filtering criteria for challenges. - Number 3 (ChallengeList): Displays challenges. Click 'GetList' to fetch challenges. Clicking a challenge shows details and provides 'Join'/'Leave' options. - Number 4 (Invite): Input friend IDs and click 'Invite' to send challenge invitations. - Number 5 (SearchParams): Configure criteria for challenge entries (e.g., afterRank, userIds) and click the magnifying glass to fetch entries. - Number 6 (ChallengeEntryList): Displays fetched challenge entries. - Number 7 (Log Message): Shows API call information and details. - Number 8 (Debug Info): Displays detailed debugging information for selected log messages. ``` -------------------------------- ### PICO Unity Integration SDK - Example Projects Source: https://developer-cn.picoxr.com/document/unity/securemr-overview Provides a list of example projects available for the PICO Unity Integration SDK, demonstrating various features and functionalities, including basic examples, motion tracking, interaction, spatial audio, and mixed reality. ```Unity Getting Started Examples Motion Tracking Example Interaction Example Spatial Audio Example Mixed Reality Example Cartoon World Space Arena Mini War Body Tracking Example Adaptive Resolution Example Platform Services Example Platform Services Simple Example Account & Friends Example Real-time Voice Example Room & Matching Example Leaderboard Example Achievement Example Challenge Example In-App Purchase (IAP) Example Downloadable Content (DLC) Example Subscription Example Motion Data Authorization Example HigHLIGHT MOMENTS Example Voice to Text Example ``` -------------------------------- ### Get Challenge List Example Source: https://developer-cn.picoxr.com/document/unity/challenges Example C# code demonstrating how to fetch a list of challenges using the ChallengesService.GetList method with custom options. ```C# void OnGetListBtnClick() { ChallengeOptions options = new ChallengeOptions(); options.SetTitle("your challenge title"); options.SetVisibility(ChallengeVisibility.Public); options.SetLeaderboardName("your leaderboard name"); options.SetViewerFilter(ChallengeViewerFilter.AllVisible); options.SetIncludeActiveChallenges(true); options.SetIncludeFutureChallenges(true); options.SetIncludePastChallenges(true); var task = ChallengesService.GetList(options, 0, 5); task.OnComplete(OnGetListComplete); } void OnGetListComplete(Message msg) { if (msg.IsError) { Debug.Log($"OnGetListComplete error: {msg.GetError().Code}, {msg.GetError().Message}"); return; } // Process the response data (ChallengeList) } ``` -------------------------------- ### PICO Unity Integration SDK - Achievements Service Source: https://developer-cn.picoxr.com/document/unity/achievements Documentation for the Achievements service in the PICO Unity Integration SDK. This service allows developers to implement achievement systems in their applications, providing rewards and encouraging player engagement. It includes guides on feature design, platform setup, use cases, code examples, and API references. ```APIDOC Achievements Service: Overview: Enables the creation of achievement systems with rewards like trophies and badges. Supports granting rewards for in-app milestones (e.g., completing tutorials, reaching levels). Advanced achievements can be tied to game content with rewards like gems, equipment, or items. Related Documentation: - Feature Design: https://developer-cn.picoxr.com/document/unity/achievements-service-design - Platform Setup: https://developer-cn.picoxr.com/document/unity/achievements-platform-service-setups - Use Cases & Code Samples: https://developer-cn.picoxr.com/document/unity/achievements-use-cases-and-code-samples - API List: https://developer-cn.picoxr.com/document/unity/achievements-api-list - Demo: https://developer-cn.picoxr.com/document/unity/achievements-demo ``` -------------------------------- ### Get Challenge Entries After Rank Example Source: https://developer-cn.picoxr.com/document/unity/challenges Example C# code for retrieving leaderboard entries after a specific rank within a challenge using ChallengesService.GetEntriesAfterRank. ```C# var task = ChallengesService.GetEntriesAfterRank(challengeID, 5, 0, 5); task.OnComplete(OnGetEntriesComplete); ``` -------------------------------- ### PICO Unity Integration SDK - SecureMR Examples Source: https://developer-cn.picoxr.com/document/unity/securemr-overview Suggests example projects like Minst and ColorPicker to showcase SecureMR functionality and provides a link to the 'SecureMR Samples' for more examples. ```Unity Get Inspiration from Examples To showcase SecureMR functionality, PICO provides the following examples for your reference: * Minst: A minimal example demonstrating SecureMR in image model inference. * ColorPicker: An interactive example showing how to process color information from the environment. For details, refer to "SecureMR Samples" (https://developer-cn.picoxr.com/document/unity/securemr-samples). ``` -------------------------------- ### Get Challenge Entries By IDs Example Source: https://developer-cn.picoxr.com/document/unity/challenges Example C# code for retrieving leaderboard entries for specific user IDs within a challenge using ChallengesService.GetEntriesByIds. ```C# string[] userIds = new string[]{"your userid1", "your id2"}; var task = ChallengesService.GetEntriesByIds(challengeID, LeaderboardStartAt.Top, userIds, 0, 5).OnComplete(OnGetEntriesComplete); ``` -------------------------------- ### Create a New Unity Project Source: https://developer-cn.picoxr.com/document/unity/import-the-sdk This guide outlines the steps to create a new Unity project using Unity Hub. It covers selecting the project template, setting the project name and directory, and initiating the project creation process. ```en 1. On the Unity Hub homepage, click Projects > New project. * You will enter the New Project page. * 2. Select the Core template > 3D. 3. In the Project settings area, set the project name and storage directory. * Tip: Project names and storage directories cannot contain Chinese characters. 4. Click Create project. * After the project is initialized, you will enter the Unity Editor page. ``` -------------------------------- ### Get Application Launch Details (C#) Source: https://developer-cn.picoxr.com/document/unity/social-interaction-use-cases Retrieves launch details for an application, supporting both cold starts (direct call) and hot starts (via callback when launch details change). ```C# // Initial cold start var launchDetails = ApplicationService.GetLaunchDetails(); // Add custom logic here Debug.Log(launchDetails.LaunchType); // Hot start ApplicationService.SetLaunchIntentChangedCallback((message) => { var launchDetails = ApplicationService.GetLaunchDetails(); // Add custom logic here Debug.Log(launchDetails.LaunchType); }); ``` -------------------------------- ### PICO Unity Integration SDK - Examples Source: https://developer-cn.picoxr.com/document/unity/securemr-api-overview A collection of example projects demonstrating various features and functionalities of the PICO Unity Integration SDK, including XR interactions, spatial audio, and platform services. ```markdown Getting Started Examples Motion Tracking Examples Interaction Examples Spatial Audio Examples Mixed Reality Examples Cartoon World Space Arena Mini War Body Tracking Example Adaptive Resolution Example Platform Services Examples Platform Services Simple Example Account & Friends Example Real-time Voice Example Room & Matchmaking Example Leaderboard Example Achievements Example Challenges Example In-App Purchase (IAP) Example Downloadable Content (DLC) Example Subscription Example Motion Data Authorization Example High-light Moment Example Voice to Text Example ``` -------------------------------- ### PICO Unity Integration SDK - Examples Source: https://developer-cn.picoxr.com/document/unity/about-pico-devices A collection of example projects demonstrating various features and functionalities of the PICO Unity Integration SDK, including XR interactions, spatial audio, and platform services. ```markdown Getting Started Examples Motion Tracking Examples Interaction Examples Spatial Audio Examples Mixed Reality Examples Cartoon World Space Arena Mini War Body Tracking Example Adaptive Resolution Example Platform Services Examples Platform Services Simple Example Account & Friends Example Real-time Voice Example Room & Matchmaking Example Leaderboard Example Achievements Example Challenges Example In-App Purchase (IAP) Example Downloadable Content (DLC) Example Subscription Example Motion Data Authorization Example High-light Moment Example Voice to Text Example ``` -------------------------------- ### PICO Platform Services and Game Module Initialization Source: https://developer-cn.picoxr.com/document/unity/room-and-matchmaking-demo Demonstrates the initialization process for PICO Platform Services and the Game Module, including obtaining an AccessToken and handling initialization results. It outlines the steps for calling CoreService.Initialize() and CoreService.GameInitialize(), and how to listen for completion callbacks. ```APIDOC CoreService.Initialize() - Initializes PICO Platform Services. CoreService.GameInitialize(accessToken) - Initializes the Game Module after PICO Platform Services are initialized. - Parameters: - accessToken: The AccessToken obtained after PICO Platform Services initialization. - Returns: - 0: Initialization failed. - Non-zero: Initialization successful. - OnComplete(YourOnCompleteFunction): Callback function to listen for initialization results. - GameInitializeResult.Success: Game Module initialized successfully. - Other values: Initialization failed, requires calling CoreService.GameUninitialize() before retrying. CoreService.GameUninitialize() - Uninitializes the Game Module. ``` -------------------------------- ### Unity Avatar Custom Animation Guide Source: https://developer-cn.picoxr.com/document/unity-avatar/custom-animation This guide details the process of customizing animations for avatars in Unity using PICO XR SDK. It covers steps from initial setup to advanced animation playback and troubleshooting common issues. ```Unity // Step 1: Integrate Avatar Module // Refer to documentation for specific integration steps. // Step 2: Import Animation Files // Import .fbx or other supported animation formats into your Unity project. // Step 3: Configure Animation Files // Set up animation clips, retargeting, and other properties in the Inspector. // Step 4: Convert Animation File Formats // Use provided tools or scripts if specific format conversions are needed. // Step 5: Load and Add Animation to Avatar // Load animation clips and assign them to the Avatar component. // Step 6: Create and Configure Animation Layer // Set up Animator Controller and Animation Layers for playback control. // Step 7: Play Animation // Use Animator component methods to play specific animations. // Troubleshooting common issues: // - Animation changes affecting other body parts. // - Abnormal phenomena during full-body animation playback. // - Limb not responding correctly with IK control. // - Limb not responding correctly for remote avatars. ``` -------------------------------- ### PICO Unity Integration SDK - Examples Source: https://developer-cn.picoxr.com/document/unity/spatial-anchors-demo A collection of example projects demonstrating various features and functionalities of the PICO Unity Integration SDK, including XR interactions, spatial audio, and platform services. ```markdown Getting Started Examples Motion Tracking Examples Interaction Examples Spatial Audio Examples Mixed Reality Examples Cartoon World Space Arena Mini War Body Tracking Example Adaptive Resolution Example Platform Services Examples Platform Services Simple Example Account & Friends Example Real-time Voice Example Room & Matchmaking Example Leaderboard Example Achievements Example Challenges Example In-App Purchase (IAP) Example Downloadable Content (DLC) Example Subscription Example Motion Data Authorization Example High-light Moment Example Voice to Text Example ``` -------------------------------- ### Build and Run on PICO Device Source: https://developer-cn.picoxr.com/document/unity/space-arena-party Instructions for building the demo project in Unity and running it on a PICO device. Covers selecting the build platform, building the application, and initial device experience. ```Unity File > Build Settings Platform: Android Click 'Build And Run' ``` -------------------------------- ### Get Leaderboard Entries by IDs Source: https://developer-cn.picoxr.com/document/unity/leaderboards-use-cases-and-code-samples Retrieves leaderboard entries for specified user IDs. It takes the leaderboard API name, the number of entries to retrieve, the starting index, the starting point (e.g., Top), and a list of user IDs. The result is processed by an OnComplete callback. ```C# LeaderboardService.GetEntriesByIds("排行榜的 API Name", 5, 0, LeaderboardStartAt.Top, userIds).OnComplete(OnLeaderboardGetEntriesByIds); ``` -------------------------------- ### PICO Unity Integration SDK - Example Demos Source: https://developer-cn.picoxr.com/document/unity/ergonomics-and-limitations Lists various example demos available for the PICO Unity Integration SDK, covering different features and functionalities. ```APIDOC Example Demos: Getting Started Examples: - Basic setup and introductory examples. Motion Tracking Examples: - Demonstrations of motion tracking capabilities. Interaction Examples: - Examples showcasing interaction features. Spatial Audio Examples: - Demos for spatial audio implementation. Mixed Reality Examples: - Examples demonstrating mixed reality features. Specific Scene Examples: - Cartoon World - Space Arena - Mini War Body Tracking Examples: - Demos for body tracking. Adaptive Resolution Examples: - Examples illustrating adaptive resolution. Platform Services Examples: - Simple Platform Services Example. - Account & Friends Example. - Real-time Voice Example. - Room & Matching Example. - Leaderboard Example. - Achievement Example. - Challenge Example. - In-App Purchase (IAP) Example. - Downloadable Content (DLC) Example. - Subscription Example. - Motion Data Authorization Example. - Highlight Example. - Voice-to-Text Example. ``` -------------------------------- ### Updating Avatar Configuration Source: https://developer-cn.picoxr.com/document/unity-avatar-uploader/create-and-upload-custom-avatars Provides information on how to update an Avatar's configuration after initial setup. ```unity 更多操作 更新 Avatar 配置 ``` -------------------------------- ### PICO Unity Avatar SDK Setup and Configuration Source: https://developer-cn.picoxr.com/document/unity-avatar/get-started-with-pico-avatar This section details the steps required to set up and configure the PICO Unity Avatar SDK within a Unity project. It includes environment requirements, importing SDK packages, project settings, and platform configurations. ```C# /* * Environment Requirements: * - PICO Unity Avatar SDK: 2.1.1 or later * - PICO Unity Integration SDK: 3.0.0 and 3.0.5 * - PICO Device Models: PICO Neo3 series, PICO 4 series, PICO 4 Ultra series * - PICO Device System Version: 5.12.0 or later * - Unity Editor Version: 2020.3.21f1 or later (Unity 6 not supported) */ // Step 1: Enable Avatar Service on PICO Developer Platform // Navigate to PICO Developer Platform > My Apps > [Your App] > Platform Services > Avatar > Enable Service. // Configure Avatar service mode (Public, Single, Private). // Step 2: Create Project and Import SDKs // 1. Create a URP project in Unity Hub. // 2. Download and extract PICO Unity Integration SDK and PICO Unity Avatar SDK. // 3. In Unity, go to Window > Package Manager. // 4. Click '+' > Add package from disk and import package.json for both SDKs. // 5. Click 'Agree' on the Auto Setting window to restart the editor. // Step 3: Select Region Code (PC Mode) // Go to AvatarSDK > NationType and select CN (China Mainland) or OverSea (Outside China Mainland). // Step 4: Complete Project Configuration // 1. Enable PICO XR Plugin: Edit > Project Settings > XR Plug-in Management > Android Settings > Check PICO. // 2. Set API Levels for PICO 4 Ultra: Edit > Project Settings > Player > Android Settings > Other Settings > Identification > Minimum API Level and Target API Level to Android 10.0 (API level 29). // 3. Switch Build Platform: File > Build Settings > Select Android > Click Switch. // 4. Set App ID: PICO Developer Platform > My Apps > [Your App] > Platform Services > API Test (get APP ID). // In Unity: PXR_SDK > Platform Settings > Enter App ID > Apply. // Step 5: Configure Controllers // 1. Window > Package Manager > Unity Registry. // 2. Select XR Interaction Toolkit > Samples > Starter Assets > Import. // 3. Refer to the documentation for specific controller configuration: https://developer-cn.pico-interactive.com/document/unity/create-an-xr-scene/#794445a4 // Step 6: Create and Configure MainActionAvatar Object // 1. In Hierarchy, delete Main Camera and add XR Origin. // 2. Create an empty GameObject under XR Origin named MainActionAvatar. ``` -------------------------------- ### PICO Developer Center (PDC) Tool Setup and Usage Source: https://developer-cn.picoxr.com/document/unity/pdc-basic-info Instructions for installing and using the PICO Developer Center (PDC) tool, which integrates ADB command debugging, real-time preview, and other core tools for managing, developing, and debugging PICO XR applications. It includes environment requirements, setup steps, and connection procedures. ```APIDOC PICO Developer Center (PDC) Tool Overview: The PICO Developer Center (PDC) is a developer service platform that integrates core tools such as ADB command debugging and real-time preview tools. You can use the PDC tool to quickly manage, develop, and debug your applications. Environment Requirements: * Operating System: Windows 10 20H2 or later, macOS Intel, macOS Apple Silicon * CPU: Intel Core i5-4590 / AMD Fx8350 or higher * RAM: 8GB or higher * Graphics Card: NVIDIA GeForce GTX 1060 6GB / AMD Radeon RX 480 equivalent performance or higher * Device Models: PICO Neo3, PICO 4, and PICO 4 Ultra series * Device System Version: 5.11.0 or above Notes: * Using the PDC tool and the "PICO Connect" software simultaneously may cause abnormal operation of the PDC tool and streaming services. Therefore, before using the PDC tool, ensure that both the PC and the headset have exited the "PICO Connect" software. * PICO 4 Ultra series devices do not have this issue. * You need to create an organization and complete the relevant information before you can log in to the PDC tool. * cmd must be in English, otherwise the PDC tool may consider the streaming service not installed correctly. * Currently, if there is a virtual graphics card in the PC, there will still be a black screen problem when using the PDC tool for real-time preview. You need to disable it in Device Manager > Display Adapters. * If Windows system is in power saving mode, it may cause the PDC tool to not recognize the USB connection status of the device. You need to go to Control Panel > Hardware and Sound > Power Options > Edit Plan Settings > Change Advanced Power Settings, and then disable USB selective suspend setting in USB Settings. Preparation: Before formal use, you need to install the PDC tool on your local computer, enable "Developer" mode for your all-in-one device, and then connect the headset and computer using a USB cable. Install PDC Tool: 1. Download and install [PICO Developer Center](https://developer-cn.pico-interactive.com/resources/#pdc) to your local computer. The PDC tool installer needs to be run as administrator, and an authorization window will pop up during installation, requiring permission. 2. If you are using macOS, you may encounter a security prompt when opening the PDC tool. You can go to the "Privacy & Security" center to handle it. Enable "Developer" Mode for All-in-One Device: Enable "Developer" mode for your PICO VR all-in-one device, otherwise, the device information will not be displayed in the PDC tool interface after connecting the headset and computer. The steps are as follows: 1. Turn on the PICO VR all-in-one device. 2. Go to Settings > General > About Device. 3. Move the cursor to Software Version and click multiple times until the Developer option appears at the bottom of the left navigation bar. 4. Click Developer to enter the developer options interface. 5. Turn on the USB Debugging switch in the upper right corner. 6. (PICO 4 Ultra only) Go to Settings > General, turn off the "Automatic Discovery of Computer Connection" switch, and then turn it back on to enable streaming mode for the PDC tool. Connect Headset and Computer: 1. Open the PDC tool, select your region, and log in with your PICO developer account. 2. Connect the headset to the computer using a USB cable. If the connection is successful, the device information panel will display the connected device (as shown in the figure below). ``` -------------------------------- ### PICO Unity Integration SDK - Examples Source: https://developer-cn.picoxr.com/document/unity/space-calibration A collection of example projects demonstrating various features and functionalities of the PICO Unity Integration SDK, including XR interactions, spatial audio, and platform services. ```markdown Getting Started Examples Motion Tracking Examples Interaction Examples Spatial Audio Examples Mixed Reality Examples Cartoon World Space Arena Mini War Body Tracking Example Adaptive Resolution Example Platform Services Examples Platform Services Simple Example Account & Friends Example Real-time Voice Example Room & Matchmaking Example Leaderboard Example Achievements Example Challenges Example In-App Purchase (IAP) Example Downloadable Content (DLC) Example Subscription Example Motion Data Authorization Example High-light Moment Example Voice to Text Example ``` -------------------------------- ### Unity Integration for Body Tracking Source: https://developer-cn.picoxr.com/document/unity/body-tracking Guides for integrating PICO's full-body tracking capabilities within a Unity application, covering setup and core functionalities. ```unity // Step 1: Enable full-body tracking capability // Ensure the necessary permissions and settings are configured in your PICO project. // Step 2: Get PICO tracker information // Use the API to retrieve details about connected trackers. // var trackerInfo = PXR_BodyTracking.GetPicoTrackerInfo(); // Step 3: Start full-body tracking // PXR_BodyTracking.StartBodyTracking(); // Step 4: Get pose data for each body joint // while (trackingActive) { // var jointData = PXR_BodyTracking.GetBodyJointData(); // // Process jointData to update 3D models or other logic // PXR_BodyTracking.Drive3DModel(jointData); // } // Step 5: Stop full-body tracking // PXR_BodyTracking.StopBodyTracking(); ```