-
Notifications
You must be signed in to change notification settings - Fork 11
Importing Twine Data into Unity with Prairie
Prereq: Before getting started with this tutorial, you'll need a Twine story exported into the JSON format copied into your clipboard. To do that, read our tutorial on Exporting Data from Twine to JSON.
Recall from the last tutorial that you've got the story's JSON code copied to your clipboard, like so:
To import your Twine Data into Unity with Prairie, go to the menu bar and choose Assets > Import Twine Data...
. With the importer window open, click the Paste from clipboard button to fill the JSON text field with your story's JSON code. Below that text box, you'll see another button for choosing where your Twine story "prefab" will go (don't worry about what a prefab is right now -- just know that it is how your story is imported). By default, your story will go into the Assets
folder, but you can select another directory if you'd like.
Your story is now imported into Unity as a prefab! Nice work!