Importing & Syncing Stories
Add stories to your project, pick their version, update them, and generate constants for code.
Your story lives in Poetix. In Unity it's a .poetix file that you add once and update whenever the story changes. This guide covers the Unity side: adding stories, keeping them up to date, working with several versions, and sharing them with your team. For the Poetix side, such as turning on sync and choosing between a file and a sync key, see Exporting & Syncing.
Adding a story#
With a sync key: copy the key from the story's Settings in Poetix, then in Unity:
- Open Tools > Poetix > Add Story from Poetix…
- Paste the key and click Get Versions. The window lists the story's Live draft and its snapshots, by name.
- Choose a version and a Folder (
Assets/Stories/by default), then click Add to Project.
The file is named after the story and its version, for example Forsaken_Outpost_-_Live_draft.poetix. Once a key has been pasted on your computer, the window remembers the story, so adding another version of it needs no key.
Alternatively, download the .poetix file in Poetix and drop it anywhere under Assets/.
What Unity shows for a story#
Select a story file to see:
- Story: how many beats, characters, and variables it has, and any problems found in it.
- Updates from Poetix: the version it follows, when it was last updated, and whether Poetix has changes.
- Characters: each character with its portrait.
- Constants for Code: see Beat names without typos.

Keeping a story up to date#
Selecting the story checks whether Poetix has changes, and its Status says Up to date or Update available. Click Update to bring the changes in, or Check for Updates to check again right now.
- Updates only happen when you ask. A half-finished edit in Poetix never reaches your game by itself.
- Poetix is the source. An update replaces the whole file, so make story changes in Poetix, not in the file.
- Everything follows. Character portraits and your constants file update along with the story.
- A failed update changes nothing. With no internet, a key that stopped working, or a story with problems, the file stays as it was and the Inspector says why.
Several versions side by side#
Each file follows one version of one story. You can have several stories and several versions of each, side by side.Update always brings in that file's own version.
Change Version… makes a file follow another version. The file is updated in place, so scenes that use it keep working. A file still named after its old version is renamed after the new one.
If a snapshot is deleted in Poetix, its file says so. Use Change Version… to follow another one.
Working with a team#
- Commit the
.poetixfiles, along with the portraits inAssets/Poetix/Portraits/. The version each file follows is saved with the project. - The sync key is never saved in the project, because anyone with it can read the whole story. It stays on each computer. A teammate opening the project pastes the key once, in the Inspector of any of the story's files, and every file of that story works for them.
- If the key is regenerated or sync is turned off in Poetix, Unity asks for the key again. Paste the new one once, and every file of the story works again.
Where files go#
Assets/Stories/: stories added from Poetix, unless you chose another folder. You can move them anywhere underAssets/.Assets/Poetix/Portraits/<story name>/: the characters' images, downloaded with the story.Assets/Poetix/Generated/: constants files, if you generate them. They can be moved too.
Renaming or moving a story file is safe: scenes that use it keep their reference.