Neocortex
IntegrationsUnity SDK

Editor Tools

The Neocortex settings window, GameObject menu, inspector pickers and live microphone readout in Unity. Manage your API key, pick AI characters and add a working chat in one click.

The SDK adds a few tools to the Unity editor, so you can set up AI characters without copying ids or wiring components by hand.

The settings window

Tools > Neocortex > Settings opens the Neocortex settings window. The first time a project has no key, it opens by itself.

The Neocortex settings window

From top to bottom, it holds:

  • API Key Management: paste your key and press Save. Create opens the API Keys page.
  • Account Status: your plan tier, the team owner, your remaining credits and when they refill.
  • Your Characters: everything on your team, each with Copy ID. Refresh fetches the list again, and Open Dashboard takes you to your characters on the web platform when you have none yet.

The key is saved in Assets/Resources/Neocortex/NeocortexSettings.asset. Add that file to your .gitignore.

The GameObject menu

Right click the Hierarchy, or open GameObject > Neocortex, to add things to the scene you have open:

The Neocortex GameObject menu

ItemAdds
Complete Text ChatA chat panel, a thinking indicator and a text input on a canvas, and a character object with a Smart Agent, an AudioSource and a NeocortexChatUI, all wired. The agent uses Text mode.
Complete Voice ChatThe same with a NeocortexAudioReceiver and the voice widget instead of the text input. The agent uses SingleAudio mode.
Chat Panel, Text Chat Input, Audio Chat Input, Microphone Dropdown, Thinking IndicatorOne widget, under the selected UI object or on the scene's canvas. A canvas and an event system are added when the scene has none.

After a complete chat is added, pick a character on its Smart Agent and press Play.

Inspector help

  • NeocortexSmartAgent and NeocortexQuizAgent: the character and the question set are dropdowns of your team's characters and question sets, with a refresh button. Without an API key, a warning with an Open Neocortex Settings button shows instead. Without a character or set picked, a prompt reminds you.
  • NeocortexInteractable: the resolved id that actions target.
  • NeocortexAudioReceiver: a microphone picker. With WebGL as the build target and the Neocortex template not selected, a warning offers Select Neocortex WebGL Template.

Live microphone readout

In Play Mode the NeocortexAudioReceiver inspector turns into a live readout: the current state, the input level with a marker at the speech threshold, and the silence countdown draining to zero.

The live microphone readout

Use it to tune Speech Threshold and Silence Timeout, or to see why a character is not hearing the player.

WebGL template

Unity's WebGL build cannot use the standard microphone API, so voice input goes through the browser with the Neocortex WebGL template. The SDK generates it at Assets/WebGLTemplates/Neocortex when it installs. Select it in Project Settings > Player > Resolution and Presentation.

The Neocortex WebGL template

If the template is missing, regenerate it from Tools > Neocortex > Import WebGL Template.

Import WebGL Template

Styling the widgets

The widgets are prefabs in the package's Resources/Prefabs folder: dark pills with amber accents. Instance them and restyle the copy, or give NeocortexChatPanel your own message prefab. The bubble colors are fields on NeocortexChatPanel.

On this page