Exporting & Syncing to a Game Engine
Download a .poetix file, or keep your game up to date with a sync key.
You write your story in Poetix and play it inside your game. There are two ways to get it there, both in the Game engines section of the story's Settings page: download the story as a file, or connect your game to the story with a sync key so it can pull in your changes whenever you ask.

Unity is available today, with Godot and Unreal coming soon. Every engine reads the same .poetix file, so a story is never tied to one engine. The Unity Quickstart takes you from here to the Unity side of things.
Choosing a version#
Whichever way you use, you pick which version of the story your game gets:
- Live draft is the story as it is right now, including edits you or your collaborators are still making. Use it while you write and test.
- A snapshot is a frozen copy that doesn't change as you keep editing. Use one for a build you hand to players or testers, so a half-finished edit never ends up in it.
Snapshots are made on the same Settings page (see Snapshots). Game engines list them by name, so name the ones you'll use there, like Alpha or Demo build. A snapshot without a name is shown by its date.
Downloading a story file#
Choose Download…, pick the engine and the version you want (live draft or a snapshot), and download the .poetix file. In Unity, drop it anywhere under Assets/.
A downloaded file is a copy: it won't change when you edit the story. To get newer changes into the game, download it again and replace the old file, or switch to a sync key.

Syncing with a sync key#
A sync key connects your game project to the story. Paste it into the engine once, and from then on you can bring in the latest version with one click, without downloading anything.
- Turn on sync creates the story's key. A story has only one key that works for every version of your story, and is shared by every computer that uses it.
- Copy copies the key so you can paste it into your engine. The page shows when it was last used, so you can tell whether your game has synced.
- In the engine you can choose any version you want, you can also have multiple versions and work on them side by side. In Unity, open Tools > Poetix > Add Story from Poetix (see Importing & Syncing Stories).
Your game only updates when someone asks it to. Editing the story in Poetix never changes a game by itself, so you can keep writing without breaking a build in progress.
Story creators and writers can turn on sync and copy the key. Readers see whether sync is on.
Keeping the key safe#
Anyone with the sync key can read the whole story, every version of it, without signing in. Treat it like a password: share it with your team, but don't post it or commit it to your game's repository. The Unity SDK keeps it on each computer and never saves it in the project.
If a key gets out, or someone leaves the team, the story's creator can open the key's menu and choose:
- Regenerate key… replaces the key. The old one stops working right away, and each computer needs the new key pasted once to get updates again.
- Turn off sync… stops the key and turns sync off. Files already in games stay as they are.
What's in the file#
The file holds everything your game needs to play the story: its scenes, beats, lines, choices, characters, and the blackboard with its conditions and results. Your game plays it by the same rules as the simulator, so what you test in Poetix is what your players get.