OASIS Web4 Unity SDK
🎮 Unity SDK for the OASIS Web4 API - Connect your Unity games and applications to the decentralized OASIS ecosystem!
🌟 Features
Complete Avatar Management - Authentication, registration, profiles, karma
Data Storage - Holons, Zomes, and all OASIS data objects
Provider Integration - Connect to 80+ blockchains and storage providers
Async/Await Support - Modern C# async patterns with UniTask
Type-Safe - Full C# type definitions for all OASIS entities
Unity Editor Integration - Inspector-friendly components and ScriptableObjects
📦 Installation
Option 1: Unity Package Manager (Recommended)
Open Unity Package Manager (Window > Package Manager)
Click the '+' button and select "Add package from git URL"
Enter:
https://github.com/NextGenSoftwareUK/OASIS-Unity-SDK.git
Option 2: Manual Installation
Download the latest release from the Releases page
Extract the package to your Unity project's
Assetsfolder
🚀 Quick Start
1. Setup OASIS Manager
2. Avatar Authentication
3. Working with Holons (Data Objects)
4. Karma System Integration
🎯 Core Components
OASISClient
Main client for all OASIS operations:
Unity-Specific Features
OASISManager Component
Attach to a GameObject for scene-wide OASIS access:
OASISConfig ScriptableObject
Create reusable configuration assets:
📚 API Reference
Avatar Operations
AuthenticateAsync(email, password, deviceInfo)- Login avatarRegisterAsync(avatarData)- Create new avatarGetAvatarByIdAsync(avatarId)- Load avatar detailsUpdateAvatarAsync(avatarId, updates)- Update avatarAddKarmaAsync(avatarId, karmaRequest)- Add karmaRemoveKarmaAsync(avatarId, karmaRequest)- Remove karma
Data Operations
CreateHolonAsync(holonData)- Create data objectGetHolonAsync(holonId)- Load data objectUpdateHolonAsync(holonId, updates)- Update data objectDeleteHolonAsync(holonId)- Delete data objectGetHolonsByTypeAsync(holonType)- Query by type
Provider Operations
GetProvidersAsync()- List all providersGetProviderStatusAsync(providerType)- Check provider statusSetAutoFailoverAsync(enabled)- Configure failoverSetAutoReplicationAsync(enabled)- Configure replication
🎮 Unity-Specific Examples
Multiplayer Avatar Sync
Persistent World State
Achievement System
🔧 Advanced Configuration
Custom Retry Logic
Provider Selection
📱 Platform Support
✅ Windows
✅ macOS
✅ Linux
✅ iOS
✅ Android
✅ WebGL
✅ Console (PlayStation, Xbox, Switch)
🔐 Security Best Practices
🧪 Testing
📖 Documentation
🤝 Support
Discord: discord.gg/oasis
Forum: forum.oasis.earth
Email: support@oasis.earth
📄 License
MIT License - see LICENSE file for details
Built with ❤️ by NextGen Software
Last updated