Skip to content

Particle-Network/particle-unity

Repository files navigation

GitHub

Prerequisites

Install Unity 2021.3.35f1 or later. Earlier versions may also be compatible but will not be actively supported.

(iOS only) Install the following:

  • Xcode 15.0 or higher
  • CocoaPods 1.14.3 or higher

Make sure that your Unity project meets these requirements:

  • For iOS — targets iOS 14 or higher

  • For Android — Minimum API Level 23 or higher,Targets API level 31 or higher,Pack apk must be with exporting project to Android Studio, change Java SDK version to 11

  • For Windows and macOS - Require unity package: 3D WebView for Windows and macOS (Web Browser), version 4.3.3 If you are familiar with web browser in windows platform, you can use other web browser instead.

📗 Docs

Auth: https://developers.particle.network/reference/auth-unity-mobile

AuthCore: https://developers.particle.network/reference/auth-unity-mobile

Connect: https://developers.particle.network/reference/connect-unity

GUI: https://developers.particle.network/reference/wallet-unity

AA: https://developers.particle.network/reference/aa-unity

Windows and macOS: https://developers.particle.network/reference/auth-unity-desktop

🚀 Quick start with DEMO

💻 In Unity Editor, we provide a test mode, easy to develop and debug.

In scene: Mobile_WalletDemo

  1. Download and open in Unity Editor.

  2. Run and click Connect Demo button, click Select Chain button, select Ethereum Sepolia.

  3. Click Init button to initialize the SDK.

  4. Click Login button, in test mode, api will return a user info.

  5. Click other button to test, you can see all logs in Console.

In scene: Window_AuthDemo

  1. Download and open in Unity Editor.

  2. Click Particle Init button to initialize the SDK

  3. Click Login to login in web view.

📲 Export to Real Phone to test.

  1. Export project and follow steps in Docs, install project to your phone.

  2. Use the same steps to test Auth Demo.

  3. With phone, you can test Connect Demo and GUI Demo

💼 Feedback

If you got some problems, please report bugs or issues.

You can also join our Discord.