Skip to content

Latest commit

 

History

History

unity-quick-start

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Web3Auth Unity Quick Start Example

Web3Auth

This example demonstrates email-passwordless authentication and EVM operations with the Web3Auth Unity SDK.

🎮 Key Features

  • Social login support (Google, Facebook, Twitter, Discord, etc.)
  • Email passwordless login
  • Secure private key generation and management
  • Cross-platform support (iOS, Android, Desktop, WebGL)
  • Customizable UI
  • Ethereum blockchain integration

📋 Prerequisites

  • Unity 6.3 LTS (6000.3.22f1)
  • Web3Auth Unity SDK 7.0.2 (included under Assets/Plugins/Web3AuthSDK)
  • A MetaMask Developer Dashboard Embedded Wallets project
  • Platform-specific requirements:
    • iOS: Xcode and an iOS 13.0+ device
    • Android: Android SDK 24+
    • WebGL: Modern browser with Web3 support

🚀 Getting Started

  1. Clone this example:
git clone https://github.com/Web3Auth/web3auth-unity-examples.git
cd web3auth-unity-examples/unity-quick-start
  1. Open in Unity:

    • Launch Unity Hub
    • Click "Add project from disk"
    • Select the unity-quick-start directory
    • Open the project
  2. Configure Web3Auth:

    • Open Assets/Web3Auth-Example.unity
    • Set your Embedded Wallets client ID and network in Assets/Web3AuthScript.cs
    • Allowlist w3aexample://com.web3auth.unityexample/auth in the dashboard
    • Keep Assets/Resources/webauth, the Android intent filter, and the configured redirect URL in sync

📚 Example Implementation

The example code in this repository demonstrates:

  • Basic Web3Auth initialization and setup
  • Social login implementation
  • User info retrieval
  • Private key management
  • Basic Ethereum blockchain interaction

The implementation is in Assets/Web3AuthScript.cs. See the Unity SDK documentation for configuration and platform setup.

🤝 Support

📝 License

MIT License