Neocortex
IntegrationsUnity

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 Manager window in Unity.
  • Click on the Neocortex package.
  • Click on the Samples tab.
  • Click on the Import button next to the sample project you want to import.

Neocortex Unity SDK Sample Projects

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.

Text Chat Scene

Audio Chat Scene

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

Audio Chat Scene

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. WebGL Audio Scene

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.

Neocortex WebGL Template

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

Import WebGL Template

On this page