VedalAI.NeuroSdk.Unity 2.0.0

dotnet add package VedalAI.NeuroSdk.Unity --version 2.0.0
                    
NuGet\Install-Package VedalAI.NeuroSdk.Unity -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VedalAI.NeuroSdk.Unity" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VedalAI.NeuroSdk.Unity" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="VedalAI.NeuroSdk.Unity" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add VedalAI.NeuroSdk.Unity --version 2.0.0
                    
#r "nuget: VedalAI.NeuroSdk.Unity, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package VedalAI.NeuroSdk.Unity@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=VedalAI.NeuroSdk.Unity&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=VedalAI.NeuroSdk.Unity&version=2.0.0
                    
Install as a Cake Tool

Neuro Unity SDK

This is the documentation for the Unity version of the Neuro SDK. If you are looking for the general API documentation, look here.

This SDK has been built for and tested with Unity 2022.3, but other versions will probably work as well.

If you encounter any issues while using this SDK, please open an issue in this repository.

Installation

In Unity

For installing this SDK in your project, you will first need to install the following dependencies:

Afterwards, you can install the SDK in one of the following ways:

  • Using the Unity Package Manager (recommended), install from the following git URL: https://github.com/VedalAI/neuro-game-sdk.git?path=Unity/Assets
  • Otherwise, if you want to make local changes to the SDK, you can install it locally by cloning or downloading this repository. Afterwards, copy the Unity/Assets folder into your Unity project's Packages folder and rename it to NeuroSdk. Unity should detect it as a package and install the dependencies that are available in the Unity registry. You still need to install the other git dependencies manually.

For Modding

If you would like to use the SDK in a modded Unity environment, install the VedalAI.NeuroSdk.Unity NuGet package.

Setup

Set the NEURO_SDK_WS_URL environment variable to the websocket URL you use for testing.

Using Prefabs

Drag the NeuroSdk prefab into whatever scene you need to use it in. Ideally, it should be added to the first scene that is loaded, like the title screen or main menu. It will move itself into DontDestroyOnLoad after, and multiple instances will be automatically destroyed so you don't have to worry about them. Afterwards, fill in the Game field in the Websocket Connection component with the game name.

Using Code

Call NeuroSdkSetup.Initialize with the name of the game that you are using. This will automatically create the necessary objects and set up the SDK. This is the only option you have if you are using the NeuroSdk in a modded environment, from a NuGet package.

WebGL Additional Setup

  1. Go to Project Settings > Player and set Compression Format to Gzip and enable Decompression Fallback.
  2. When running, use a script such as this one that serves the NEURO_SDK_WS_URL variable at the /$env/NEURO_SDK_WS_URL path.

Usage

Please refer to the USAGE.md file for information on how to use the SDK.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on VedalAI.NeuroSdk.Unity:

Repository Stars
VedalAI/neuro-sdk
Neuro SDK + API for allowing Neuro to play games
Version Downloads Last Updated
2.0.0 334 12/29/2025
2.0.0-pre.4 169 10/15/2025
2.0.0-pre.3 135 2/16/2025
2.0.0-pre.2 107 2/11/2025
2.0.0-pre.1 98 2/6/2025
1.2.1 318 1/18/2025
1.2.0 169 1/7/2025
Loading failed