> Updated for version 6.0.30

The **Unity** and **Godot** exports turn your story into a package that you open in the game engine. It contains your story, your files and an open player (in C# for Unity, in GDScript for Godot) that you can use as is or replace with your own interface. These exports never carry a Celestory watermark.

![Publish project window on the Unity tab: Package title field and, at the bottom, the start of the skipped blocks section](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbzBKIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ddb24bb3a49788c6a7e8a81d1f5d7f6ae211be7e/project-export--unity.en.png)
*the Publish project window open on the Unity tab, with the "Package title" field and the list of skipped blocks*

## What the package contains

| | Unity | Godot |
| --- | --- | --- |
| Engine and version | Unity 2021.3 LTS or newer, with the Unity UI package | Godot 4.2 or newer |
| Package shape | An `Assets/Celestory` folder to copy into your project | A complete Godot project, ready to open |
| Your story | `story.json` and your files (images, sounds...) | `story.json` and the `assets/` folder |
| Player | Open C# runtime and default player | Open GDScript runtime and default player scene |
| Files | A runtime folder, an editor folder, a `README.md` | Plain text files only, editable and versionable |

A `README.md` with installation steps, carrying your title, comes with the package.

## Where to find these exports

Click **Publish** in the top bar (shortcut **Shift + B**): the **Publish project** window opens. Click **Unity** or **Godot** in the left column. These exports are not in the **Export** window of the main menu, which is for the book, modules, data and files.

> 🔺 **Note:** these exports require a Pro plan or higher. Otherwise, the **Upgrade** button replaces **Export**.

## Export

1. Choose the **Starting module**. If your project has menus, leave the switch on **Start with a module**: menus are not played by these exports (see the limits below).
2. In the **Unity** tab, fill in **Package title**. In the **Godot** tab, fill in **Project name**. This field is optional: if empty, Celestory uses the story name.
3. Check the **New app version**.
4. Read the section **Blocks skipped by the Unity export** (or **Godot**), see below.
5. Click **Export**.

A message says "App exported! You will receive an email with the link to download it." You receive an email with the download link.

### The package title

- For Unity, the **Package title** is shown in the `README.md` of the package.
- For Godot, the **Project name** is shown in the Godot editor and in the game window.

## Open the package in Unity

1. Create or open a Unity project (any render pipeline), version 2021.3 LTS or newer.
2. Make sure the **Unity UI** package is installed: **Window > Package Manager**, then **Unity Registry > Unity UI**. Most project templates include it, an empty project does not.
3. Copy the `Assets/Celestory` folder of the package into your project's `Assets/` folder.
4. Let Unity import, then open the menu **Celestory > Create Player Scene**.
5. Press **Play**: the default player plays your story.

The default player reads the mouse and keyboard through the classic Input Manager. If your project only enables the new Input System, set **Edit > Project Settings > Player > Active Input Handling** to **Both**.

## Open the package in Godot

1. Install Godot 4.2 or newer.
2. In Godot, click **Import** and choose the `project.godot` file of the folder.
3. Press **F5**: the default player scene plays your story.

The window size depends on your project's ratio (for example 720 x 1280 for a portrait, 1280 x 720 for a landscape or responsive ratio).

## Blocks skipped by the export

The player plays the story blocks: dialogues, choices, conditions, variables, sub-graphs, images and sounds. In the export tab, the **Blocks skipped by the Unity export** section (or **Godot**) lists, as orange tags, the block types of your project that are not played yet. The story skips these blocks and goes on through their first output: check that it still makes sense without them. If the list is empty, Celestory shows "Every block of this project is played by the Unity export."

Not included yet: menus, saved data, integrations and API calls, JavaScript code, lists and objects. Two blocks (Analytics and QTE) are played by Godot but skipped by Unity.

![Publish project window, Godot tab, scrolled down: Blocks skipped by the Godot export section, help text and four orange tags (Add to list, Airtable, AI text request, Run Javascript)](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbzRKIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c6b7f2659efa4bddf577ebaf93a2bbae1c62c4f7/aide-visuels--godot-blocs-ignores.en.png)
*the "Blocks skipped by the Godot export" section with a few tags*

> 💡 **Tip:** for skipped blocks, you can write their behavior in your own code: the player reports each unsupported block (the `OnUnsupportedBlock` event for Unity, the `unsupported_block` signal for Godot) before following its first output.

## Update the story in the game

Each export regenerates the whole package. If you changed the player, keep your changes in your own scripts and scenes. To update, replace only `story.json` and the files of `assets/` (Unity: in `Assets/Celestory/Resources/Celestory/`) with those of the new export.

## Limits

- Menus are not shown: the game starts directly at the starting module.
- Blocks listed in that section are skipped.
- The default player is deliberately simple (background, dialogue box, choices).
- Unity: no scene file is provided, the scene is created with the **Celestory > Create Player Scene** menu.
- Godot: the icon provided is the Godot Engine logo (CC BY 4.0 license, mentioned in the `README.md`); replace it with your own if you do not want to keep this credit.

## See also

- [Exporting your story as a book](https://documentation.celestory.io/hc/celestorydoc/articles/1795353914-export-your-story-as-a-gamebook)
- [📦 Export HTML5 of your app](https://documentation.celestory.io/hc/celestorydoc/articles/fr-exports-export-html5-de-votre-app-0ba7c9)
- [💳 Monetize your app](https://documentation.celestory.io/hc/celestorydoc/articles/fr-exports-monetiser-son-app-e0f0e7)
