Samples
Seven Neocortex Unity SDK sample scenes with text and voice chat, actions, interactables, group chat, usage gating and a quiz show for AI NPCs in Unity.
The SDK ships seven sample scenes and a launcher, starring Cora, a 3D character with her own animations and lip sync. Each sample is a complete, working setup you can open, press Play on, and take apart.
Every sample's interface is part of its scene, so you see the whole layout when you open it in the editor. The sample scripts only fill it in and react to it.
Importing
- Open the
Package Managerwindow - Select the
Neocortex Unity SDKpackage - Open the
Samplestab and pressImportnext toNeocortex Samples
Opening the launcher
Save your API key in Tools > Neocortex > Settings first, then open 0 - Samples and press Play.

Above the sample cards, pick:
- Character: one of your characters. Every sample talks as it, and the group sample gets your other characters as its cast.
- Question set: the set the Quiz Show plays.
- Microphone: the input device for the voice samples.
Press Escape, or Back to Samples, to return to the list. In the editor the samples open straight from the folder. For a build, right click the Sample Launcher component and pick Add Samples To Build Settings.
1. Text Chat

1 - Text Chat Demo. Type to a character. Each line drops in as it is spoken, in its own emotion, with a typing bubble between lines. Cora thinks while the reply is on its way and talks while a line plays. New Chat Session starts over.
2. Audio Chat

2 - Audio Chat Demo. Talk through the microphone and hear the reply. The voice widget shows your level, the silence countdown and when the character is answering, and Cora's mouth follows the voice as it plays.
3. Actions

3 - Actions Demo. Ask Cora to dance or jump. Ask for both in one sentence and she plays them in order, each animation finishing before the next starts. Set Delay Between Actions on the agent to add a pause between them. Add DANCE and JUMP actions to your character first. See Actions.
4. Interactables

4 - Interactables Demo. Colored shapes carry a NeocortexInteractable. Say "go to the blue square, then the red one" and Cora walks to each in turn, because every action carries the shape's id as its targetId.
5. Group Chat

5 - Group Chat Demo. Several characters in one conversation through a NeocortexGroupDirector, with a live roster: a character waiting offstage walks in to join, and one at the table can leave. The cast greets the newcomer and carries on without whoever left. Needs a Pro or Team plan.
6. Usage Gating

6 - Usage Gating Demo. Before every message, a NeocortexUsageGate checks your team's usage and the per-player and per-character limits, and only then lets the character answer. The log shows your account, the usage and every gate event.
7. Quiz Show

7 - Quiz Show Demo. Cora hosts a quiz for one to four players from your question set. Type an answer, tap an option, ask for a hint or pass. The question card shows the question and its scene keyword, the Reply As chips pick which player you answer for and show their scores, with the answering player's chip in amber, and Abort and Resync show recovery. Needs a Team plan. See Quiz.
WebGL builds
Voice input in a WebGL build needs the Neocortex WebGL template. See Editor Tools.
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.
Group Chat
Put several AI characters in one conversation in Unity with the Neocortex Group Director, each with its own voice, joining, leaving and talking to each other.