Unity Quickstart
Install the SDK and get a character talking in your game in five minutes.
The Poetix SDK plays your story inside Unity: the lines, the choices, and the blackboard, by the same rules as the simulator. This guide gets a character talking in your game in about five minutes, without writing any code.
You'll need a Poetix story with at least one scene, and Unity 2021.3 or newer. The SDK works with every render pipeline, in 2D and 3D, and with both the Input System and the old Input Manager.
1. Install the SDK#
- In Unity, open Window > Package Manager.
- Click + and choose Add package from git URL…
- Paste this address and click Add:
https://github.com/DoreZahavy/poetix-unity-sdk.git?path=PoetixA Poetix menu appears under Tools and in the Hierarchy's right-click menu.
2. Add your story#
In Poetix, open your story's Settings and, under Game engines, turn on sync and copy the sync key. Then in Unity:
- Open Tools > Poetix > Add Story from Poetix…
- Paste the key and click Get Versions.
- Choose your Live draft or a snapshot and click Add to Project.

The story is saved as a .poetix file in Assets/Stories/. When you change the story in Poetix, select the file and click Update to bring the changes in.
Instead of using a sync key, you can simply download the file from the app. drop the .poetix file anywhere under Assets/. See Exporting & Syncing for how the two compare.
3. Add a Dialogue Box#
In your Unity scene, choose Tools > Poetix > Create Dialogue Box. This adds a single PoetixDialogueBox object, which does all the heavy lifting for us - drawing the dialogue box and playing the dialogue, displaying speaker name, portrait, text and choices to pick from.
Select it to see its settings. If your project has one story, it's already set as the Story, otherwise pick yours. Here you can also choose a Theme and Layout, which allows customization of the dialogue box's appearance. You can come back to that later in Themes & Layouts.

4. Make a character talk#
In the Hierarchy, right-click your character and choose Poetix > Talking Character. This adds a Talk Range child with an invisible trigger around the character and a Dialogue Starter, set to start the conversation when the player presses E nearby. With nothing right-clicked, it creates a placeholder character you can put your sprite or model under.
Select Talk Range and set:
- Story: leave it empty to use the Dialogue Box's story.
- Start From: the beat this character's conversation begins with. Search it by name, or leave it on the story's root beat.
The player needs the Player tag and a Rigidbody or Character Controller, so Unity notices it walking into the range. If anything is missing, the Dialogue Starter's Inspector says what and usually offers a button to fix it.
5. Press Play#
Walk up to the character and press E. The conversation opens. Space, Enter, a click, or Gamepad A moves to the next line, and choices appear as buttons you can click or pick with the arrow keys. Conditions and results work as they do in Poetix, so the story reacts to earlier choices from the first playthrough.
If nothing happens#
- Pressing E does nothing: check that the player has the Player tag and a Rigidbody or Character Controller, and that the player and the range are both 2D or both 3D.
- The box never appears: the scene needs a Dialogue Box. Select the Dialogue Starter; if there's none, its Inspector offers Create Dialogue Box.
- The story stops early or says it has problems: playtest the same beat in Poetix's simulator, which shows the same warnings with more detail.
Where to go next#
- Starting Dialogues Without Code: start conversations on a click, when the player walks into an area, or from a button.
- The Dialogue Box: keys, pacing, sounds, portraits, and events.
- Controlling Dialogue from Code: start conversations from your scripts and pause your game while they play.
- Variables, Saving & Scene Changes: connect the blackboard to your game's state.