Sample Projects
Learn about the sample projects provided by the Neocortex Unity SDK
After setting up the Neocortex SDK in your Unity project, you can start using the sample projects provided by the SDK to understand the integration process.
The SDK comes with a sample project with 2 scenes:
- Text Chat: Demonstrates how to integrate the Neocortex Smart Agent with a text chat interface.
- Voice Chat: Demonstrates how to integrate the Neocortex Smart Agent with a voice chat interface.
Importing Sample Projects
To import the sample projects to your Unity project, follow these steps:
- Open the Package Managerwindow in Unity.
- Click on the Neocortexpackage.
- Click on the Samplestab.
- Click on the Importbutton next to the sample project you want to import.

In these sample scenes, you can find all the necessary components and scripts required to integrate the Neocortex Smart Agent with your Unity project. And test the integration with a text chat or voice chat interface by just setting your project ID and API key.
Text Chat Scene
The Text Chat scene demonstrates how to integrate the Neocortex Smart Agent with a text chat interface.

Audio Chat Scene
The Audio Chat scene demonstrates how to integrate the Neocortex Smart Agent with a voice chat interface.

Chat History Sample
The Chat History scene demonstrates how to fetch and display the chat history of a character.

WebGL Audio Sample
Unity WebGL builds do not support microphone input.
To make the voice chat work in a WebGL builds, the WebGL Audio Sample scene demonstrates how to integrate the Neocortex Smart Agent with a Neocortex Web Audio Receiver component to receive audio data from the browser.

To be able to run this scene, you need to build the project for WebGL and use the Neocortex WebGL Template.
When SDK is installed, the template will be generated in the Assets/WebGLTemplates/Neocortex folder.

In case you don't have the template, you can generate it by clicking on the Tools > Neocortex > Import WebGL Template menu in Unity.
