Installation
This page shows how to install and import the NAREON AI NPC WEB3 SDK into your Unity project.
Unity Package Manager (UPM)
Open Unity and go to Window > Package Manager
Press the + button in the top-left corner
Select "Add package from git URL..."
Enter the repository link: https://github.com/nareon/NareonSDK.git
Unity will download and install the package into
Packages/com.nareon.ainpcweb3
Dependencies Installation
Ethereum Dependencies
Install Nethereum via one of these methods:
NuGetForUnity, or
Bundled
.dllfiles inPlugins/orDependencies/
Solana Dependencies
Install Solnet via one of these methods:
NuGetForUnity, or
Bundled
.dllfiles inPlugins/orDependencies/
Additional Dependencies
The package requires the following Unity packages:
{ "dependencies": { "com.unity.nuget.newtonsoft-json": "3.0.2", "com.unity.mathematics": "1.2.6" } }
Post-Installation Verification
Check Console
Confirm there are no compile errors in the Unity Console
If you see references to
Nethereummissing, ensure you installed itIf you see references to
Solnetmissing, ensure you installed it
Verify Blockchain Support
Check
NAREON/Blockchain/Ethereumdirectory existsCheck
NAREON/Blockchain/Solanadirectory existsVerify all required assemblies are loaded
Test Network Connections
Use the included test scene:
NAREON/Samples/NetworkTestVerify connection to both networks
Configuration
Once installed, proceed to configure:
Environment variables for network providers
AI service API keys
Token configurations for both chains
For detailed setup instructions, check out the Configuration guide!
Troubleshooting
Common Issues
Missing Dependencies
Error:
Nethereum namespace not foundSolution: Install Nethereum via NuGetForUnity
Error:
Solnet namespace not foundSolution: Install Solnet via NuGetForUnity
Assembly Reference Issues
Error:
Cannot resolve reference 'System.Numerics'Solution: Add reference in Assembly Definition file
Error:
Missing assembly reference 'Microsoft.Bcl.AsyncInterfaces'Solution: Install via NuGetForUnity
Network Connection Issues
Error:
Provider URL not configuredSolution: Set environment variables:
# Ethereum export ETH_PROVIDER_URL="your_ethereum_provider" # Solana export SOL_PROVIDER_URL="your_solana_provider"
Package Structure
Packages/com.nareon.ainpcweb3/
├── Runtime/
│ ├── Blockchain/
│ │ ├── Ethereum/
│ │ └── Solana/
│ ├── AI/
│ └── Core/
├── Samples~/
│ ├── NetworkTest/
│ └── TokenExample/
└── package.jsonSystem Requirements
Unity 2021.3 or later
.NET Standard 2.0 or later
Nethereum 4.14.0 or later
Solnet 6.1.0 or later
Last updated

